Bitcoin Forum
October 09, 2024, 10:17:42 AM *
News: Latest Bitcoin Core release: 28.0 [Torrent]
 
   Home   Help Search Login Register More  
Pages: [1]
  Print  
Author Topic: resolved  (Read 663 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!