Random Posts

Thursday, 15 November 2018

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));

0 comments:

Post a Comment

Good day precious one, We love you more than anything.