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> Link to comment https://forums.phpfreaks.com/topic/103659-echo-not-displaying-and-updating-database-not-working/ 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 Link to comment https://forums.phpfreaks.com/topic/103659-echo-not-displaying-and-updating-database-not-working/#findComment-530790 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 Link to comment https://forums.phpfreaks.com/topic/103659-echo-not-displaying-and-updating-database-not-working/#findComment-530796 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. Link to comment https://forums.phpfreaks.com/topic/103659-echo-not-displaying-and-updating-database-not-working/#findComment-530797 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 Link to comment https://forums.phpfreaks.com/topic/103659-echo-not-displaying-and-updating-database-not-working/#findComment-530798 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.