Reputation: 4 Apprentice
- Active Members
- Active Posts:
- 197 (0.11 per day)
- 18-May 11
- Profile Views:
- Last Active:
- Apr 19 2016 10:59 AM
- Dream Kudos:
Posts I've Made
Posted 24 Dec 2015So in your opinion it's less costly to save tons of data in database fields than it is on the server? I've always heard the opposite, particularly with images and sound files. I will check out the .htaccess rewrites though
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.
- Member Title:
- D.I.C Head
- Age Unknown
- Birthday Unknown
- Click here to e-mail me
drayarms hasn't added any friends yet.