Jump to content

sending variables for mysql


barney0o0

Recommended Posts

Hi Folks, im doing something wrong,...and my head hurts

 

From a page link im sending

test.php?Cat1=Sedie&Cat3=case

 

In the test page i have the following msql

 

$cat1 = $_GET['Cat1'];
$cat3 = $_GET['Cat3'];
$query_test = "SELECT * FROM product WHERE cat1 = '$cat1' AND '$cat3' = 'y' ORDER BY id ASC";
$test = mysql_query($query_test, $funari) or die(mysql_error());
$row_test = mysql_fetch_assoc($test);
$totalRows_test = mysql_num_rows($test);

 

however im not getting any results online (or error messages), even though the data is populated

 

...any ideas? Thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/135326-sending-variables-for-mysql/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.