Results 1 to 14 of 14

Thread: Add record to MySQL with PHP...[Resolved]

Threaded View

  1. #1

    Thread Starter
    Retired G&G Mod NoteMe's Avatar
    Join Date
    Oct 2002
    Location
    @ Opera Software
    Posts
    10,190

    Add record to MySQL with PHP...[Resolved]

    I have a table with an auto_increment value. And I want to add a record but how do I choose what fields goes where, and how does PHP know what field are just going to be incremented by MSQL?

    I guess it will be something like

    $query = "insert into arrangement values('".$aBy."', '".$aDato."','".$aNavn."','".$aInfo."','".$aStort."')";

    But before aBy I have a field called aArrID that will be autoincremented....what does the syntax look like then?
    Last edited by NoteMe; Apr 4th, 2004 at 01:44 PM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width