Re: [Phplib-users] Classes, MySQL, Images & phplib
Brought to you by:
nhruby,
richardarcher
From: Layne W. <la...@of...> - 2001-12-31 15:24:47
|
> require("config.php3"); > class Image { > var $db; > function Image() { > global $ID; > $img->db = new Image; I think you might want to try instantiating your db class here instead of the image class you are creating. Try (with your class name): $img->db = new DB_Example; > $sql="SELECT photo FROM WLPphoto WHERE profileID='$ID'"; > $img->db->query($sql); > while($img->db->next_record()) { > Header("Content-type: image/jpeg"); > echo $this->db->Record[photo]; > } > } > } Layne Weathers Ifworld Inc. |