Help for this page

Select Code to Download


  1. or download this
        $sth = $dbh->prepare('SELECT * FROM modules WHERE module LIKE :m A
    +ND code LIKE :c');
        $sth->bind_param(':m', "%v%");
        $sth->bind_param(':c', "%x%");
        $rv = $sth->execute;
    
  2. or download this
    <?php
    /* Execute a prepared statement by binding PHP variables */
    ...
    $sth->bindParam(':colour', $colour, PDO::PARAM_STR, 12);
    $sth->execute();
    ?>