Results 1 to 3 of 3

Thread: Empty set but has a result

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jan 2005
    Location
    Cebu
    Posts
    607

    Empty set but has a result

    I have a weird problem. The query seems to be empty but I got a result resource.

    Code:
    $query = 'SELECT ...';
    		print_r($this->db . '<br>');
    		$result = mysql_query($query, $this->db);
    		print_r($result);
    		if ($result) {
    			$price_max_schedules = mysql_result($result, 0, "value");
    		}
    Outputs:
    Code:
    Resource id #72
    Resource id #97
    I know I'm missing something but I can't seem to find it. Help anyone? Thanks in advance!
    Last edited by nebulom; Apr 14th, 2010 at 07:39 PM. Reason: Added output

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width