Warning admdump.php [message #13532] |
Thu, 16 October 2003 16:49 |
ngockhoi
Messages: 15 Registered: July 2003 Location: Paris
Karma: 0
|
Junior Member |
|
|
I have a warning :
pg_num_fields(): supplied argument is not a valid PostgreSQL result resource in /var/www/html/vnu/adm/admdump.php on line 98
the code is
function sql_num_fields($r)
{
return __dbtype__ == 'pgsql' ? pg_num_fields($r['res']) : mysql_num_fields($r);
}
I think is pg_num_fields($r) but it can be the change for some think else ?.
if a chang it it make another warning :
pg_field_name(): supplied argument is not a valid PostgreSQL result resource in /var/www/html/vnu/adm/admdump.php on line 108
Best regards,
|
|
|
Re: Warning admdump.php [message #13533 is a reply to message #13532] |
Thu, 16 October 2003 18:40 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
For PostgreSQL pg_num_fields($r['res']) is the correct usage. The original failure implies that the query prior to the sql_num_fields() funciton had failed.
FUDforum Core Developer
|
|
|
|
Re: Warning admdump.php [message #13555 is a reply to message #13552] |
Fri, 17 October 2003 12:28 |
Ilia
Messages: 13241 Registered: January 2002
Karma: 0
|
Senior Member Administrator Core Developer |
|
|
Fixed in CVS. If you fetch admdump.php from CVS and replace the one you have the problem will go away.
FUDforum Core Developer
|
|
|