Bitcoin Forum
November 12, 2024, 05:07:01 AM *
News: Check out the artwork 1Dq created to commemorate this forum's 15th anniversary
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: resolved  (Read 672 times)
b!z (OP)
Legendary
*
Offline Offline

Activity: 1582
Merit: 1010



View Profile
September 26, 2013, 01:04:07 PM
Last edit: September 26, 2013, 03:40:37 PM by b!z
 #1

closed. thanks for your help guys.
skeltoac
Newbie
*
Offline Offline

Activity: 10
Merit: 0



View Profile
September 26, 2013, 01:17:14 PM
 #2

You need to check the value of $this->query = mysql_query(...) and if it indicates an error then print mysql_error() to see what went wrong.

You should also check the returns of mysql_connect() and mysql_select_db().

And I really hope you're using escape(). :-)
Rannasha
Hero Member
*****
Offline Offline

Activity: 728
Merit: 500


View Profile
September 26, 2013, 01:28:30 PM
 #3

mysql_result() requires a query-result to work with. If no query-result is available, this can be for several reasons:
- there was an error.
- the query is of a type that only returns a success/failure. For example: INSERT or UPDATE queries.

The code you posted is just a function library, so I can't tell what actual code calls the problematic function, so at this stage we can't really debug further.

Also note that the mysql_ set of functions is deprecated and you should use the mysqli_ functions. See php.net for details.
b!z (OP)
Legendary
*
Offline Offline

Activity: 1582
Merit: 1010



View Profile
September 26, 2013, 02:00:45 PM
Last edit: September 26, 2013, 03:40:29 PM by b!z
 #4

closed. thanks for your help guys.
Pages: [1]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.19 | SMF © 2006-2009, Simple Machines Valid XHTML 1.0! Valid CSS!