Wrong parameter count for pg_fetch_object()
Posted: Thu Feb 19, 2004 10:27 am
I am trying to run a query and spit out the variables, I am getting an error anyone know what I am doing wrong?
I am getting the following error and line 19 is the while line: Warning: Wrong parameter count for pg_fetch_object() in /home/ams/public_html/test/xml/index.php on line 19
Code: Select all
$query = "select * from data_inventory where auction_event='$event'";
$result = pg_exec($con,$query);
$num = pg_numrows($result);
if($num > 0){
while($rows = pg_fetch_object($result))
{
echo $rowsї0];
echo $rowsї1];
echo $rowsї2];
}else{
echo 'no records found';
}I am getting the following error and line 19 is the while line: Warning: Wrong parameter count for pg_fetch_object() in /home/ams/public_html/test/xml/index.php on line 19