Re: Re: insert to DB

From: Date: Thu, 22 Dec 2005 21:48:23 +0000
Subject: Re: Re: insert to DB
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-227818@lists.php.net to get a copy of this message
PHP might not be sending you an error, are warnings turned on in php.ini? if not turn the on and see if you get any errors On 12/18/05, David Hall <dhall@wustl.edu> wrote: > > > > <? > > if ($_POST["$submit"]) > > { > > $Name = $_POST["Name"]; > > $Rating = $_POST["Rating"]; > > > > $sql = "UPDATE leaderboard SET Name='$Name', Rating='$Rating' > > WHERE > > ID=$id"; > > //replace news with your table name above > > $result = mysql_query($sql); > > echo "Thank you! Information updated."; > > } > > } > > ?> > > You don't set id in this case. Of course, from some of your other > code, it looks like you're relying on register_globals to be on, so > maybe it is and that's not why. > > David Hall > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > > -- Hi Everyone, I am running PHP 5 on Windosws XP SP2 with MySQL5, Bye Now!

« previous php.general (#227818) next »