Jump to content

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

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.