Jump to content

[SOLVED] Please Help : Error Message


JamesXL1967

Recommended Posts

Hi Guys

 

I am new to PHP and mysql and I wondered if anyone could explain this error :

 

Call to undefined function: resource id #88() in mydomain/home/myfile.php on line 63

 

The code it relates to is as follows (line 63 highlighted) :

 

$user_data = $db->query("SELECT user_hi, user_lo FROM

" . DB_PREFIX . "users WHERE user_id='" . $session->value('user_id') . "'");

 

$sql_select_data = $db->query("SELECT a.item_id, a.name, a.price,  a.currency, a.owner_id, a.item_hi, a.item_lo,

LINE 63 >>> sqrt (((". $user_data($user_hi) ." - a.item_hi)*( ". $user_data($user_hi) . " -a.item_hi)) + ((".$user_data($user_lo)." - a.item_lo)*(".$user_data($user_lo)." - a.item_lo))) AS TDifference

FROM

" . DB_PREFIX . "items a " . $force_index . "

" . $where_query . "

GROUP BY a.item_id

ORDER BY TDifference ASC LIMIT " . $start . ", " . $limit);

 

}

 

Any help with the above or if you can spot any other errors in the code would be appreciated.

 

Many thanks in advance

Link to comment
https://forums.phpfreaks.com/topic/159402-solved-please-help-error-message/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.