Re: Problem, please help!

From: Date: Sun, 21 Mar 2004 03:03:01 +0000
Subject: Re: Problem, please help!
References: 1  Groups: php.db 
Request: Send a blank email to php-db+get-33578@lists.php.net to get a copy of this message
On Mar 21, 2004, at 3:44 AM, JeRRy wrote:
Hi, I have not used this site in a while and have a problem. I can't get anything to save to the database. :( Not sure what is wrong, need a fix fast as the site needs to be active in a few days by the latest so hopefully I can get help in that time. The code is a bit messy I know but here goes: <snip> $sql = "UPDATE round1 SET game1='$game1' , game2='$game2' , game3='$game3' , game4='$game4' , game5='$game5' , game6='$game6' , game7='$game7' , game8='$game8' , misc='y' WHERE username= \"$sidarray[0]\"";
This only updates an existing record, where the username is equal to $sidarray[0]. Don't expect it to insert new data.
Okay it output on the php page fine but won't save to db, anyone know why?
Secondly, please put a little effort in writing quality code and markup before you post it here. <br> is really ugly... Regards, Filip de Waard

« previous php.db (#33578) next »