joyce
Thu 7th Feb '02, 5:05am
hi, i have 1 textfield, if user fill up all the text field, my query works well, but if user only key in a few, then i got error for my query.
can anyone tell me wat is wrong with my query?
$DB_site->query("INSERT INTO point(newthread, reply, reply1, reply2, reply3, reply4, reply5, replypoint1, replypoint2, replypoint3, replypoint4, replypoint5, view1, view2, view3, view4, view5, viewpoint1, viewpoint2, viewpoint3, viewpoint4, viewpoint5, addpoint, penalty, maxpenalty) VALUES ($anewthread, $areply, areply1, $areply2, $areply3, $areply4, $areply5, $areplypoint1, $areplypoint2, $areplypoint3, $areplypoint4, $areplypoint5, $aview1, $aview2, $aview3, $aview4, $aview5, $aviewpoint1, $aviewpoint2, $aviewpoint3, $aviewpoint4, $aviewpoint5, $aaddpoint, $apenalty, $amaxpenalty)");
can anyone tell me wat is wrong with my query?
$DB_site->query("INSERT INTO point(newthread, reply, reply1, reply2, reply3, reply4, reply5, replypoint1, replypoint2, replypoint3, replypoint4, replypoint5, view1, view2, view3, view4, view5, viewpoint1, viewpoint2, viewpoint3, viewpoint4, viewpoint5, addpoint, penalty, maxpenalty) VALUES ($anewthread, $areply, areply1, $areply2, $areply3, $areply4, $areply5, $areplypoint1, $areplypoint2, $areplypoint3, $areplypoint4, $areplypoint5, $aview1, $aview2, $aview3, $aview4, $aview5, $aviewpoint1, $aviewpoint2, $aviewpoint3, $aviewpoint4, $aviewpoint5, $aaddpoint, $apenalty, $amaxpenalty)");