to insert data into MYSQLdatabase from dropdown menu containg many items

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mahitha1
    New Member
    • May 2007
    • 1

    to insert data into MYSQLdatabase from dropdown menu containg many items

    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
    Recognized Expert Expert
    • Apr 2007
    • 5821

    #2
    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.:
    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!

    Comment

    Working...