Reputation: 4 Apprentice
- Active Members
- Active Posts:
- 191 (0.12 per day)
- 18-May 11
- Profile Views:
- Last Active:
- Aug 22 2015 04:46 PM
- Dream Kudos:
Posts I've Made
Posted 22 Aug 2015No it's just pure css. No html tags. I'm just going to investigate the error
That's possible but I wouldn't know. Here's the contents of my .htacess file
php_value memory_limit 32M errorDocument 404 /index.php
Posted 21 Aug 2015What error appears in your browser's console?
Is the CSS loaded and working for another file/directory?
Well I checked the error console and lo and behold, here's what I had
"Resource interpreted as Stylesheet but transferred with MIME type text/html:" This refers to the stylesheetAlthough this might not be preferable or efficient, you could use:
<link rel="stylesheet" type="text/css" href="http://mydomain.com/style.css"/>
Okay that worked but why would an absolute path to the url work and not a relative path?
Makes sense. Thank you for the explanation. I've abandoned this approach in favor of some other less convoluted approach involving Ajax.
$number = "<script>document.writeln(localStorage.getItem('number'));</script>"; //And run the query $query = "SELECT * FROM table WHERE number = '$number' ";
Here $number is a string of JS, nothing else. That JS is not executed or anything so when you put it in the query I am not even sure how you are even getting a number at all. Your query should be reading...
$query = "SELECT * FROM table WHERE number = '<script>document.writeln(localStorage.getItem('number'));</script>' ";
Which is obviously not going to work. PHP can render JS, JS can pass values to other PHP pages via AJAX requests and read in through post parameters, but how you are mixing them here is not making sense. Read my blog about this topic...
Are you perhaps leaving out some steps?
echo $numberjust to make sure and sure enough, I got a '1' printed on the page.
Posted 25 Jul 2015
QuoteThe var_dump yields this:
string(162) "SELECT * FROM table WHERE number = '1 ' "
Well I had to remove some other table columns and associated values from the WHERE clause in the query because I only wanted to include information relevant to the problem. That's why the var dumb string length does not match what I posted.
- Member Title:
- D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
drayarms hasn't added any friends yet.