I am trying to find the number of rows that match a specific pattern. In this example, all that START with \"123\":
This is working:
$query = mysql_q
DO it like
$query = mysql_query("SELECT * FROM table WHERE the_number LIKE '$yourPHPVAR%'");
Do not forget the % at the end
%