Re: [PHP] Re: insert to DB

2005-12-22 Thread PHP Superman
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 <[EMAIL PROTECTED]> wrote: > > > > >if ($_POST["$submit"]) > >{ > > $Name = $_POST["Name"]; > >$Rating = $_POST["Rating"]; > > > >

[PHP] Re: insert to DB

2005-12-18 Thread David Hall
$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,