By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
432,188 Members | 834 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 432,188 IT Pros & Developers. It's quick & easy.

to insert data into MYSQLdatabase from dropdown menu containg many items

P: 1
i have been trying to insert data into database from an html form which contain dropdown menus and text boxes in php using mysql as database.but iam getting the message that record has been added but the added record is not visible in the database table.so pls send me exact syntax to insert data into table from a drop downmenu in php.
May 18 '07 #1
Share this Question
Share on Google+
1 Reply


pbmods
Expert 5K+
P: 5,821
Heya, mahitha1. Welcome to TSDN!

If you're getting a message that the row has been added, but the row wasn't actually added, then there's a problem with your error checking.

Try using mysql_error() to see if your query returned an error. Also, let's have a look at the code that detects if a row was inserted to see where the problem is.

P.S.:
so pls send me exact syntax to insert data into table from a drop downmenu in php.
Sorry, but thescripts.com doesn't work that way. You've got to do the work yourself, but we're happy to lend support and advice along the way!
May 18 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.