mysql_fetch_row() error
I'm hoping someone can please help me. I am getting the error:
"mysql_fetch_row() expects parameter 1 to be resource, boolean given" but I can't work out why?
function sccp_get_model_data(){
global $db;
$res = mysql_query("SELECT model, dns, buttons, loadimage
FROM sccpdevmodel
WHERE dns > 0
ORDER BY model ");
while ($row = mysql_fetch_row($res)) {
$modelData['model'][] = $row[0];
$modelData['dns'][] = $row[1];
$modelData['buttons'][] = $row[2];
$modelData['loadimage'][] = $row[3];
}
return $modelData;
}
Any help would be appreciated.
Subject
Written By
Posted
mysql_fetch_row() error
June 10, 2016 01:57AM
Sorry, you can't reply to this topic. It has been closed.
Content reproduced on this site is the property of the respective copyright holders.
It is not reviewed in advance by Oracle and does not necessarily represent the opinion
of Oracle or any other party.