php - jQuery Fileupload filter display according to mySQL query -
hi have saved mysql database files uplaoded using jquery-php fileupload answer thread guide. questiion is, possible show images database according users uploaded imgs? since save users along filename.? dont have idea on how it, or whant , insert codes, or possible.
edited: have idea initialize loading of image
protected function get_file_object($file_name) { if ($this->is_valid_file_object($file_name)) { $file = new stdclass(); $file->name = $file_name; $file->size = $this->get_file_size( $this->get_upload_path($file_name) ); $file->url = $this->get_download_url($file->name); foreach($this->options['image_versions'] $version => $options) { if (!empty($version)) { if (is_file($this->get_upload_path($file_name, $version))) { $file->{$version.'_url'} = $this->get_download_url( $file->name, $version ); } } } $this->set_file_delete_properties($file); return $file; } return null; }
now want insert mysql query filter images show, don't know how.
select desc images userid=1
Comments
Post a Comment