Type: Posts; User:
Ive just bought Ádn.com since i wanted a CDN for a few sites and thought i'd be clever but ive just noticed in some browsers to redirects to the ASCII set version and in others it doesn't.
Yeah that will offer some protection but is not 100%. I would look at using PDO with prepared statements much more secure.
One thing to note with mysql_real.. it doesn't escape % or _. Also for...
Arh right i guess i will wrap it all in try & catch then if execute does it then no real big deal but php.net should be clear.
Hmm the php.net docs doesn't seem to follow that train on thought though. My full code is below i see nothing wrong dont understand why the docs would say that then it not be the case.
Nope, my thoughts were it was being added in PHP6 but read somewhere its in PHP 5.3.5 and it works. Any thoughts on the issue though ? you think its a bug ?
Seems like you can just use the SimpleXML class, unless i dont understand the question ive used it in the past pretty simple to work with
The code you have posted does seem to have some major issues.
Firstly the IF function seems to have no ELSE statement yet it seems you wish to have it.
Second you are doing a foreach() loop yet...
Cant really see what would cause the issue is it Line 89 where the query is done ? whats the field name.
Also just to point out all these queries are open to SQL injection attacks :)
You cant just ask someone to make something for you. Most people on either are either students and developers both of which dont have spare time to just write a piece of code for you and create...
Where is this image ? Legend of Zelda, The - Ocarina of Time (U) (V1.0) snap0003.jpg
Its saying it cant find it, not only that but im unsure if you can pass a directory path with a file that has...
Hi, im just rewriting my database abstraction class and im wanting to turn on PDO Exceptions upon errors such as
$stmt = static::$_pdo->$prepare('SEL * FR foo');
This should throw yet it...
Okay i created a HTTP Ajax chat a while back and its really hitting my web server hard, its created using memcache to store the data in but still hits the server hard.
Im wanting to create a php...
Why have you switched around the code ? its now not going to work as you want, also this is cookies not sessions.
I would look at this http://w3schools.com/php/php_mysql_insert.asp
You want to...
Arh right no problem ive learned to never use button now lol
You will maybe want to look at preg_match and preg_match_all
So whats the issue now ? or is it all ok
Well its ment to be that way you cant use <?php within echo you use '.$foo.'
anyway just double check and change the input type to submit and not button
You dont need session_start() for the cookie to work.
Okay just put this together quickly, this will keep writing the current date/time they visited and if 5 days or greater will write to the DB...
Your error is because you are using echo then trying to do <?php echo within which is just treated as a string and rendered in HTML
echo("<form action='" . $_SERVER['PHP_SELF'] . "'...
Why is the modify.php posting to itself ?
<form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post">
You dont have any code in modify.php to handle this post data, im guessing you want...
Line 163 is missing a end brace
Well since an IP address doesn't mean one person then no, for example if im surfing at my college all our computers use the same IP address therefore you dont really know.
Best way is to have a...
Yeah when i build a login system when Mr X authentication is done i create a random hash salted with there usename, password, time, IP, user_agent, etc then store it within a cooike and my database....