$newid=$_POST['product_id'];
$c="SELECT quota FROM packages WHERE vendorid= '3'";
$b=mysql_query($c) or die(mysql_error());
$count=mysql_num_rows($B)/>;
$val=mysql_fetch_array($B)/>;
foreach($val as $q){
echo $q;
}
Hey everyone, this code is working to retrieve the quota, but it is returning it twice. There is only ever going to be one entry with that id, but i cant just exit after the first entry becuase I have to carry the value onto the next pages, any idea why it is returning the same value twice ?

New Topic/Question
Reply




MultiQuote




|