1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Cannot insert data into database

Discussion in 'PHP' started by anchitjindal07, Oct 25, 2009.

  1. anchitjindal07

    anchitjindal07 New Member

    Joined:
    Jul 13, 2009
    Messages:
    22
    Likes Received:
    0
    Trophy Points:
    0
    Hi
    I have created a form in html using the code at http://pastebin.com/f11b9724f
    The code of process5.php is at http://pastebin.com/f35d8ad2f Now I want to store the data filled in form by user to database. But there is some problem in process5.php as it is giving following output
    Successfully connected The database and table have been successfully created as shown by phpMyAdmin. Bt the table is empty Plz help...I cannot insert the data into database
     
  2. pradeep

    pradeep Team Leader

    Joined:
    Apr 4, 2005
    Messages:
    1,646
    Likes Received:
    86
    Trophy Points:
    0
    Occupation:
    Programmer
    Location:
    Kolkata, India
    Home Page:
    May be your data contains single quotes, use function add_slashes!
     

Share This Page