On Tuesday 30 March 2004 19:46, irinchiang@xxxxxxxxxxxxxxxxx wrote: > sorie it was my typo error. actually in my code there is already {} with my > first if statement and there is also a space after VALUES... Whenever you post code, use copy and paste, or be extremely meticulous that you do not introduce typos. This will ensure that people can focus on your real problem and not on your erroneously introduced typos. > I still need some help here with my code...how can I prevent it from > inserting a duplicate row of null values>??? echo() your $sql statement just before you execute it. Are you doing any redirections or refreshing the page? -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * ------------------------------------------ Search the list archives before you post http://marc.theaimsgroup.com/?l=php-db ------------------------------------------ /* I've read SEVEN MILLION books!! */ -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php