Re: [PHP] INSERT problem with MySQL/PHP

2001-06-18 Thread Todd A. Jacobs
On Mon, 18 Jun 2001, Todd A. Jacobs wrote: > $sql = "INSERT INTO question VALUES (NULL, $user_idx, $objective, > '$question', '$question_type', NULL, NULL)"; > > $result = mysql_db_query('item_db', $sql_query, $connection_id);

[PHP] INSERT problem with MySQL/PHP

2001-06-18 Thread Todd A. Jacobs
7;, $sql_query, $connection_id); echo ""; echo "\nDebugging output:\n"; echo "\tSQL: $sql\n"; echo "\tError: ", mysql_error(), "\n"; echo "\tLast insert ID: ", mysql_insert_id(), "\n"; echo "\tResult: $result\n"; echo "\n"; -- Todd A. Jacobs CodeGnome Consulting, LTD