Insert and Delete Query

Discussion in 'PHP' started by tinyprogram, Aug 29, 2011.

  1. tinyprogram

    tinyprogram New Member

    Joined:
    Jan 31, 2011
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Web Developer
    Location:
    Cyber World
    I want to make a webpage in PHP having two buttons and a textbox...first button to insert data into database using textbox and second button to delete data from database from textbox entry.

    Please tell me the coding of it..

    Thanks in advance :)
     
  2. etsuser

    etsuser Banned

    Joined:
    Oct 1, 2011
    Messages:
    7
    Likes Received:
    0
    Trophy Points:
    0
    We’re going to insert about 10 variables — one for each field on the Edit User page. This will make the
    insert statement much wider than a screen or a piece of paper. So I recommend using white space to help
    you debug it:
    insert into tableUsers
    (
    dbUsername,
    dbPassword,
    dbFirstName,
    dbLastName
    )
    values
    (
    'rconescu',
    'whatever',
    'Ron',
    'Conescu'
    )
    The Delete query in MS Access SQL command used to remove one or more rows of data from a relational database table.

    Syntax: Delete * From M_Employees Where Emp_Name = "Joe";
     

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice