#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jan 2013
    Posts
    7
    Rep Power
    0

    Sql prepared statement


    hi again everyone!

    I have a problem with an sql query that i want to use in a prepared statement.
    in my query I want to use "OR" but the browser returns an error message informing me that the arguments are too many.

    what i do is something like this :

    PHP Code:
    $query select ... from ... where .... AND (var1=? OR var2=? OR var3=?) 
  2. #2
  3. --
    Devshed Expert (3500 - 3999 posts)

    Join Date
    Jul 2012
    Posts
    3,930
    Rep Power
    1045
    Hi,

    please show us the exact code.

IMN logo majestic logo threadwatch logo seochat tools logo