Mssql / Mysql queries

Results 1 to 4 of 4
  1. #1
    Meh Matt is offline
    Grand MasterRank
    Aug 2006 Join Date
    Ontario, CanadaLocation
    1,745Posts

    Mssql / Mysql queries

    I can code pretty well, but I just wana know about queries.

    PHP Code:
    <?PHP
    $query 
    mssql_query(INSERT INTO tablenameVALUES (???);
    ?>


  2. #2
    Grand Master Mario_Party is offline
    Grand MasterRank
    Nov 2003 Join Date
    LondonLocation
    1,803Posts
    yep you use
    PHP Code:

    $query 
    "INSERT INTO tablename (column1,column2) VALUES ('value1','value2')";
    mssql_query($query);

    // or
    // mysql_query($query);
    // for mysql 

  3. #3
    Meh Matt is offline
    Grand MasterRank
    Aug 2006 Join Date
    Ontario, CanadaLocation
    1,745Posts
    Thanks!!

    Alot :P, Scripting is gunna be alot easier for meh now :)

  4. #4
    Grand Master username1 is offline
    Grand MasterRank
    Jul 2004 Join Date
    5,867Posts
    The MySQL Reference Manual is a good read if you want to know more about SQL statement syntax.



Advertisement