Ask about general coding issues or problems here.
Moderators: macek, egami, gesf
by Joan Garnet » Wed Jan 22, 2003 5:55 am
Change to
$HTTP_POST_VARS["$newid"], etc...
If it doesn't work, the I suspect you are inserting in the wrong order.
To insert records you have to follow the same order as it is in the database.
An example:
- Code: Select all
$sql= "INSERT INTO ".$table." VALUES ( NULL,'$name','$comment', NULL,'$url',0, '$my_date' )";
-

Joan Garnet
- Moderator

-
- Posts: 387
- Joined: Sat Aug 03, 2002 2:56 am
- Location: Mars
-
Return to PHP coding => General
Who is online
Users browsing this forum: No registered users and 7 guests