If i never see another array in my life, I would be happy. I am getting in a pickle with this: -
$countresult = mysql_query("SELECT SupplierID FROM suppliers WHERE Type = 'Paper' ORDER BY SupplierID");
$count = mysql_num_rows($countresult);
echo $count;
echo "spam";
echo $countresult[0];
echo "spam2";
$supplier = DBquery("Select * FROM papertype WHERE SupplierID = '$countresult[0]'", $db);
right the count bit works fine, and tells me there are 5 records which there are. The problem is my $countresult[0]. What I am trying to do is select rows from the table papertype where the SupplierID equals the supplierID from the first row in $countresult.
Other notes: the supplierID is not sequential, I might not always want the 1st row, but the SupplierID from nth row.
Any help, would be appreciated.
Emma