nebulom
Apr 14th, 2010, 07:36 PM
I have a weird problem. The query seems to be empty but I got a result resource.
$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:
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!
$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:
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!