Heya peeps!
Well, im new to these forums and somewhat new to the whole php thing... but Im learning little by little.... anyway... the problem I am having is this...
I have a page the is dependent on values submitted to it through an array. The problem is, is when the values get submitted, they don't carry down to my query. Here is the code that I have so far.....
$weapons_count=count($compare);
for ($n=0; $n<$weapons_count; $n++) {
$wid=$compare[$n];
mysql_select_db($database_xoops_tswn, $xoops_tswn);
$query_xoops_weapons = "SELECT * FROM xoops_mechwarrior_weapons WHERE wid = '$wid'";
$xoops_weapons = mysql_query($query_xoops_weapons, $xoops_tswn) or die(mysql_error());
$row_xoops_weapons = mysql_fetch_assoc($xoops_weapons);
$totalRows_xoops_weapons = mysql_num_rows($xoops_weapons);
echo "<br>$wid";
}
Any help is greatly appreciated.... Im at a loss here...
If you want to see what it is doing, check out this link, select a few of the check boxes, and click on the compare button at the bottom... once submitted you will see the arrayed id numbers in the top lefthand corner of the table and only one of the arrayed items displayed by the query...
http://www.tswn.com/modules/Mechwarrior/weapons.php?wclass=b&tech=clan&orderby=price&order=asc&submit.x=32&submit.y=12
Thanks for your help,
Tim