Re: Problem, please help!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux