Where select
Posted: Sat May 22, 2004 12:49 pm
Having a bit of a headache with this
but if i take where id='3' out of the query it works? Even though there is a "3" id in the table.
i get this error: "extract(): First argument should be an array"
Code: Select all
<?php
mysql_pconnect("localhost","**********","******");
mysql_select_db("douple_Newdata");
$result = mysql_query("select * from counter where id='3'");
mysql_fetch_array($result);
$row = mysql_fetch_array($result,MYSQL_ASSOC);
extract ($row);
echo "$count";
?>i get this error: "extract(): First argument should be an array"