• Passing an array to a query using a WHERE clause


    ints:
    $query = "SELECT * FROM `$table` WHERE `$column` IN(".implode(',',$array).")";
    strings:
    $query = "SELECT * FROM `$table` WHERE `$column` IN('".implode("','",$array)."')";
  • 0 comments:

    Post a Comment

    FAVOURITE LINE

    To steal ideas from one is plagiarism. To steal from many is Research.

    ADDRESS

    Mumbai , Maharashtra

    EMAIL

    shikha.pathak6@gmail.com
    shikha.the.swt.pari@gmail.com

    Skype

    shikha_pari