Hi all, Im trying to put togeather a shopping basket but keep getting this error: :glare:
Warning: extract() [function.extract]: First argument should be an array in c:\wamp\www\website\cart.php on line 53
The code looks like this:
<?php
$total = 0;
while ($row = mysql_fetch_array($results)) {
echo "<tr>";
extract($row);
$prod = "SELECT * FROM products " .
"WHERE product_id='$carttemp_prodnum'";
$prod2 = mysql_query($prod);
$prod3 = mysql_fetch_array($prod2);
extract($prod3);
Where like 'extract($prod3);' is line 53.
But its all ready set as an Array... i originally thought it may be becoz its not returning any results... but thats SHOULD NOT be the case there should definately be a result returned. :bemused:
Any ideas as to what i may be doing wrong? :mad: