mysgli
from:

Could you help translate these 2 lines from deprecated mySQL to the new mysqli, please?


$searchq = $_POST['keyword'];
/*$searchq = preg_replace("#[^0-9a-z]#i","",$searchq);*/
$query = mysqli_select_db("SELECT * FROM Chains WHERE Country LIKE '%$searchq%' OR City LIKE '%$searchq%'") or die ("could not search");
$count = mysqli_result::$num_rows($query);
if($count == FALSE)

I tried but whatever I put in is wrong...

Poster :
qim