error in sql

Discussion in 'PHP' started by bordello, Aug 15, 2008.

  1. #1
    i am trying to install one script....after filling up database details, it showing following error

    any one know how to solve this ?


    Thanks
     
    bordello, Aug 15, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    Yes - You can't have two SQL queries executed in one in PHP, it doesn't support it. It seems you have used a ; to create another INSERT. Just split that out into multiple queries and you should be good to go.

    Jay
     
    jayshah, Aug 15, 2008 IP
  3. nabil_kadimi

    nabil_kadimi Well-Known Member

    Messages:
    1,065
    Likes Received:
    69
    Best Answers:
    0
    Trophy Points:
    195
    #3
    use X times mysql_query() instead of 1 mysql_query with coma separated sql statements.
     
    nabil_kadimi, Aug 15, 2008 IP