pdo wildcard

$search = $_GET["search"];
    $retval1 = $dbconnect->prepare('SELECT count(id) FROM fr_payment WHERE name LIKE :search AND status = :payment_status');
    $retval1->execute(array(':search' => '%'.$search.'%', ':payment_status' => $payment_status));

Comments

Popular posts from this blog

HOW TO REGISTER FOR SAFETOKEN

Most Popular Password Cracking Tools