It is:
$result = mysql_query("insert into guestbook_entries values ('', '$field1', '$field2', '$field3', '$field4', '$msn', '$aim', '$icq', '$yahoo', '$cusfield1', '$cusfield2', '$cusfield3', '$cusfield4', '$the_date', '$the_time', '$ip')", $dbi);
$result = mysql_query("update guestbook_entries set field1='".$field1."', field2='".$field2."', field3='".$field3."', field4='".$field4."', msn='".$msn."', aim='".$aim."', icq='".$icq."', yahoo='".$yahoo."', cus1='".$cusfield1."', cus2='".$cusfield2."', cus3='".$cusfield3."', cus4='".$cusfield4."', date='".$the_date."', time='".$the_time."', ip='".$ip."' where id='".$entryid."'", $dbi);
Note: $the_date is not the timestamp. I don't know how to add a timestamp to a MySQL query, and when I do, that's when I'll add the timestamp column in my table. 🙂
Thanks for your help, epimeth.