Connecting Tech Pros Worldwide Forums | Help | Site Map

to insert data into MYSQLdatabase from dropdown menu containg many items

Newbie
 
Join Date: May 2007
Posts: 1
#1: May 18 '07
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.

pbmods's Avatar
Site Moderator
 
Join Date: Apr 2007
Location: Texas
Posts: 5,435
#2: May 18 '07

re: to insert data into MYSQLdatabase from dropdown menu containg many items


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.:
Quote:

Originally Posted by mahitha1

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!
Reply