Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2

Thread: array

  1. #1
    New Coder
    Join Date
    Apr 2007
    Posts
    17
    Thanks
    0
    Thanked 0 Times in 0 Posts

    array

    see i have two tables.technology and category.In technology i have the fields id(auto_increment primary) and name. In category i have id(auto_increment primary),categoryname and categoryid.

    In the first table i insert the name and the value of the id is auto_increment.
    now am going to insert the categoryname in the category table by using
    technology.id=category.categoryid.(the name in the technology table ). how can i use the array .

  • #2
    UE Antagonizer Fumigator's Avatar
    Join Date
    Dec 2005
    Location
    Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
    Posts
    7,691
    Thanks
    42
    Thanked 637 Times in 625 Posts
    I don't know what an array has to do with this, but you can use mysql_insert_id() to find out what the auto-increment value was that just got inserted.


  •  

    Posting Permissions

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