> Can anyone tell me what might be wrong? > > $user_idx = 1; > $objective = 1; > $question = 'Foo'; > $question_type = 'singular'; > > $connection_id = mysql_connect ('192.168.1.1', 'php', 'password') > or die ("No connection.\n"); > > $sql = "INSERT INTO question VALUES (NULL, $user_idx, $objective, > '$question', '$question_type', NULL, NULL)"; > > $result = mysql_db_query('item_db', $sql_query, $connection_id); ^^^^^^^^^^ I daresay this will be the problem since the SQL is in $sql. Jason
- [PHP] INSERT problem with MySQL/PHP Todd A. Jacobs
- Re: [PHP] INSERT problem with MySQL/PHP Tom Carter
- Re: [PHP] INSERT problem with MySQL/PHP David Robley
- Re: [PHP] INSERT problem with MySQL/PHP Developer
- Re: [PHP] INSERT problem with MySQL/PHP Miles Thompson
- Re: [PHP] INSERT problem with MySQL/PHP Ethan Schroeder
- Re: [PHP] INSERT problem with MySQL/PHP Todd A. Jacobs
- [PHP] test [EMAIL PROTECTED]
- Jason Murray