public function get_imagen_id() { $sql = "select * from imagen where id=".$_GET["id"]; $res = mysql_query($sql,Conectar::con()); while($reg = mysql_fetch_array($res)) { $this -> foto_id[] = $reg; } return $this -> foto_id; }
Y ... me da este error ...
[b]Warning: mysql_fetch_array(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\foto\class\class.php on line 62[b/] .. Si necesitan mas información para ayudarme, pidanla, PERO NECESITO AYUDA!! :c