Re: [PHP] My SQL not getting row

2003-06-11 Thread Jason Wong
On Wednesday 11 June 2003 13:31, Ben Houlton wrote: > The bit of my code that I'm working on is here: > if ($submit) { > > if ($id) { > > $sql = "UPDATE pages SET sub='$sub' > msg='$msg',name='$name',email='$email',newday='$newday' WHERE id=$id"; > > } else { > > $sql = "INSERT INTO pa

[PHP] My SQL not getting row

2003-06-10 Thread Ben Houlton
The bit of my code that I'm working on is here: if ($submit) { if ($id) { $sql = "UPDATE pages SET sub='$sub' msg='$msg',name='$name',email='$email',newday='$newday' WHERE id=$id"; } else { $sql = "INSERT INTO pages (sub,msg,name,email,date,time,newday) VALUES ('$sub','$msg','$name