Access our premium support and let us know your problems, we will help you solve them.

0
No products in the cart.

Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
    Posts
  • in reply to: WordPress prepared statement with IN() condition #10027
    blankweb-nomad
    Participant

    The prepare function also takes an array as the second parameter.

    You can try converting $villes like this:

    Current

    <?php
    $villes = '"paris","fes","rabat"';
    ?
    

    Change it to

    <?php
    $villes = array("paris","fes","rabat");
    ?>
    

    Now, try passing $villes to the prepare func and see if it works. Hope it helps.

Viewing 1 post (of 1 total)