試す
$str = "%".$singer."%";
$SQL =
"SELECT *
FROM table
WHERE field1 LIKE ?
ORDER BY field2 ASC";
$sth = $dbh-> prepare ($SQL);
$sth->bindParam (1, $str);
リファレンス ==>3番目の例を参照
試す
$str = "%".$singer."%";
$SQL =
"SELECT *
FROM table
WHERE field1 LIKE ?
ORDER BY field2 ASC";
$sth = $dbh-> prepare ($SQL);
$sth->bindParam (1, $str);
リファレンス ==>3番目の例を参照