SkyRanger Posted April 7, 2008 Share Posted April 7, 2008 Ok, yeah this is a stupid problem which I have done dozens of times, and I cannot find the problem: page1 gbauth.php?gid=1 page2 $connection=mysql_connect ("localhost", "username", "password") or die ('I cannot connect to the database because: ' . mysql_error()); mysql_select_db ("database"); $sql = "update book set gbauth='1' where gid='$gid'"; $result = mysql_query($sql) or die ('I could not update the information in the database because ' . mysql_error()); echo "Entry Authorized" Can't figure out why it will not update, and I am getting no errors. I get the Entry Authorized but nothing get updated in the database. Link to comment https://forums.phpfreaks.com/topic/99920-solved-stupid-problem/ Share on other sites More sharing options...
SkyRanger Posted April 7, 2008 Author Share Posted April 7, 2008 Figured it out, I had $_POST['gid'] when I should have had $_GET['gid'] Link to comment https://forums.phpfreaks.com/topic/99920-solved-stupid-problem/#findComment-510948 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.