doublea2k7 Posted May 1, 2008 Share Posted May 1, 2008 why isn't my echo showing and my database updating <? include "config2.php"; ?> <!doctype html public "-//w3c//dtd html 3.2//en"> <html> <head> </head> <body> <? $name=mysql_real_escape_string($name); if ($rec=mysql_fetch_array(mysql_query("SELECT name FROM accounts WHERE name='$name'"))) { if (($rec['name']==$name)) { if(mysql_query("update accounts set loggedin='2' WHERE name='$name'")){ echo "<font face='Verdana' size='12' ><center>OK <br> Your account has been fix try to log in the game now!</font></center>"; } } } ?> </body> </html> Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted May 1, 2008 Share Posted May 1, 2008 http://www.phpfreaks.com/forums/index.php/topic,194542.msg876099.html#msg876099 Quote Link to comment Share on other sites More sharing options...
doublea2k7 Posted May 1, 2008 Author Share Posted May 1, 2008 i try $query = "update accounts set loggedin='2' where name=$name"; echo $query; mysql_query($query) or die(mysql_error()); i get the same thing just a blank page like i did before Quote Link to comment Share on other sites More sharing options...
hitman6003 Posted May 1, 2008 Share Posted May 1, 2008 Then you probably have a syntax error somewhere in your script. Make sure display_startup_errors is turned on. Quote Link to comment Share on other sites More sharing options...
doublea2k7 Posted May 1, 2008 Author Share Posted May 1, 2008 they r on cause if a remove a bracket i get a syntax error ? what could be the problem Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.