कोशिश करें
$str = "%".$singer."%";
$SQL =
"SELECT *
FROM table
WHERE field1 LIKE ?
ORDER BY field2 ASC";
$sth = $dbh-> prepare ($SQL);
$sth->bindParam (1, $str);
संदर्भ ==> तीसरा उदाहरण देखें
कोशिश करें
$str = "%".$singer."%";
$SQL =
"SELECT *
FROM table
WHERE field1 LIKE ?
ORDER BY field2 ASC";
$sth = $dbh-> prepare ($SQL);
$sth->bindParam (1, $str);
संदर्भ ==> तीसरा उदाहरण देखें