Jump to content

[SOLVED] Stupid Problem


SkyRanger

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.