I am trying to use two query using between but when I add the between code it does not work. This is the code that is working for me before using BETWEEN.
$result = mysql_query("SELECT name , liking , id , address , description FROM locations WHERE liking LIKE '%{$likeArray[$newCount]}%'");
This is the code with BETWEEN that is not working.
$result = mysql_query("SELECT name , liking , id , address , description FROM locations WHERE ‘long’ BETWEEN ‘$Slong’ AND ‘$Blong’ AND lat BETWEEN ‘$Slat’ AND ‘$Blat’ AND liking LIKE '%{$likeArray[$newCount]}%'");
mysql_functions have been deprecated a long time ago, switch to mysqli or PDO