insert record into another table |
12/11/2007 6:51:30 AM |
PHPRunner General questions | |
G
garethp authorDevClub member
Help please!!!! //** Insert a record into another table **** global $conn; $strSQLInsert = "insert into part (auditdate) values (now())"; db_exec($strSQLInsert,$conn);
|
|
J
|
Jane 12/11/2007 |
Hi, //** Insert a record into another table **** global $conn; $strUpdate = "update part set auditdate=now() where part=".$values["part"]; db_exec($strUpdate,$conn); |
G
|
garethp authorDevClub member 12/11/2007 |
Jane |
A
|
alang 12/11/2007 |
Try putting single quotes around the value: |
G
|
garethp authorDevClub member 12/12/2007 |
Just brilliant - this worked - you are a genius. |