Miedzik
04-12-2009, 20:05
Witam, ostatnio wywala mi taki błąd, i nie wiem w czym tkwi problem :confused:
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /domena/public_html/libraries/joomla/database/database/mysql.php on line 462
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /domena/public_html/libraries/joomla/database/database/mysql.php on line 469
wycinek z pliku mysql.php
function loadObjectList( $key='' )
{
if (!($cur = $this->query())) {
return null;
}
$array = array();
while ($row = mysql_fetch_object( $cur )) { <<<<linia 462
if ($key) {
$array[$row->$key] = $row;
} else {
$array[] = $row;
}
}
mysql_free_result( $cur ); <<<< linia 469
return $array;
}
Jak to naprawić ?
Warning: mysql_fetch_object(): supplied argument is not a valid MySQL result resource in /domena/public_html/libraries/joomla/database/database/mysql.php on line 462
Warning: mysql_free_result(): supplied argument is not a valid MySQL result resource in /domena/public_html/libraries/joomla/database/database/mysql.php on line 469
wycinek z pliku mysql.php
function loadObjectList( $key='' )
{
if (!($cur = $this->query())) {
return null;
}
$array = array();
while ($row = mysql_fetch_object( $cur )) { <<<<linia 462
if ($key) {
$array[$row->$key] = $row;
} else {
$array[] = $row;
}
}
mysql_free_result( $cur ); <<<< linia 469
return $array;
}
Jak to naprawić ?