Can't get this code to work, am I doing something wrong? From the sql manual it looks right. It seems to get caught up only when I include the last part with the userid and password (The WHERE statement)
$sql = "INSERT INTO client SET
compname = '$_POST[compname]',
web = '$_POST[web]',
email = '$_POST[email]',
cat = '$_POST[cat]',
recip = '$_POST[recip]',
description = '$_POST[description]',
state = '$_POST[state]',
city = '$_POST[city]' WHERE userid = '$_SESSION[userid]' AND
password = '$_SESSION[password]'";
Thanks for any help.