0o0o0
07-19-06, 03:09 PM
running Query, but 2 Get statements dont wanna work together
Cant for the life of me figure out...
$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM `BIKES`where prod = '".$typeArray[$_GET['model']]."' AND make = '".$typeArray[$_GET['makes']]."'"),0);
doesnt count the total.
but if I use say...just straight prod = 'YZR' as a prod.. and the rest of the statement stays the same it all works fine.. counts the sum.
but soon as I have two GETs in the same line its doesnt count the sum.
Is there a trick?
Thanks guys. Even a hyperlink to somewhere on tips about this would be just as good!
Cant for the life of me figure out...
$total_results = mysql_result(mysql_query("SELECT COUNT(*) as Num FROM `BIKES`where prod = '".$typeArray[$_GET['model']]."' AND make = '".$typeArray[$_GET['makes']]."'"),0);
doesnt count the total.
but if I use say...just straight prod = 'YZR' as a prod.. and the rest of the statement stays the same it all works fine.. counts the sum.
but soon as I have two GETs in the same line its doesnt count the sum.
Is there a trick?
Thanks guys. Even a hyperlink to somewhere on tips about this would be just as good!