Ask a Question related to PHP Development, Design and Development.
-
jmev7 #1
Script to upload images and add to database?
Is there a script that will allow upload of multiple images at once to
a FTP server, and simultaneously write that list to a MySQL table? I
need to allow users to do something like this.
Thanks.
jmev7 Guest
-
Images upload
Hi to all of you. I need to be able to upload any kind of images in one of the pages of my website whem I'm connected from a pc that's not mine.... -
Upload images ???
Hi! My client want to have an option to upload images to his website, without third party involvement. I have looked for the solution all around,... -
a Free way to upload database images?
Hello stuff that dreamweavers are made of. Im trying endlessly to search for ways to upload images from my .asp pages using JS into a database. ... -
form upload images using php form script
Hi, I normally use CGI to process my html forms. However, this time I need/want to use PHP. Can anyone point me in the direction of a php... -
Upload images to Access database
How can I easy upload picture to an MS access database. -
Pedro #2
Re: Script to upload images and add to database?
jmev7 wrote:
I doubt it very much.> Is there a script that will allow upload of multiple images at once to
> a FTP server, and simultaneously write that list to a MySQL table? I
> need to allow users to do something like this.
Probably the best approximation you'll be able to dig out
will upload the multiple files *sequentially*.
Apart from that, yes, I'm pretty sure there is.
--
I have a spam filter working.
To mail me include "urkxvq" (with or without the quotes)
in the subject line, or your mail will be ruthlessly discarded.
Pedro Guest
-
jmev7 #3
Re: Script to upload images and add to database?
Pedro <hexkid@hotpop.com> wrote in message news:<bnpg41$148ntn$2@ID-203069.news.uni-berlin.de>...
Actually, sequentially makes sense. I don't mind limiting myself to,> jmev7 wrote:>> > Is there a script that will allow upload of multiple images at once to
> > a FTP server, and simultaneously write that list to a MySQL table? I
> > need to allow users to do something like this.
> I doubt it very much.
> Probably the best approximation you'll be able to dig out
> will upload the multiple files *sequentially*.
>
> Apart from that, yes, I'm pretty sure there is.
say, 5 textboxes with "browse" buttons next to them. Then, the user
selects 1-5 images, clicks "UPLOAD" (or submit, or whatever), and the
upload begins, with the SQL statement to follow. I can figure out the
SQL statement (I think) better than I can the array to step through.
Any suggestions on code to lookup?
Thanks
jmev7 Guest
-
Clubberboy #4
Re: Script to upload images and add to database?
Op 3 Nov 2003 07:17:38 -0800 schreef [email]jmev7@yahoo.com[/email] (jmev7):
I think this script is what your looking for>Actually, sequentially makes sense. I don't mind limiting myself to,
>say, 5 textboxes with "browse" buttons next to them. Then, the user
>selects 1-5 images, clicks "UPLOAD" (or submit, or whatever), and the
>upload begins, with the SQL statement to follow. I can figure out the
>SQL statement (I think) better than I can the array to step through.
[url]http://www.techtronix.be/demos/im/index2.php[/url]
username: demo
password: demo
Clubberboy Guest
-
Bob #5
Re: Script to upload images and add to database?
[email]jmev7@yahoo.com[/email] (jmev7) wrote in message news:<c72a6456.0311030717.2e8cd97a@posting.google. com>...
Hi, First are you sure you wanna to use FTP, I think the best way is> Pedro <hexkid@hotpop.com> wrote in message news:<bnpg41$148ntn$2@ID-203069.news.uni-berlin.de>...>> > jmev7 wrote:> >> > > Is there a script that will allow upload of multiple images at once to
> > > a FTP server, and simultaneously write that list to a MySQL table? I
> > > need to allow users to do something like this.
> > I doubt it very much.
> > Probably the best approximation you'll be able to dig out
> > will upload the multiple files *sequentially*.
> >
> > Apart from that, yes, I'm pretty sure there is.
> Actually, sequentially makes sense. I don't mind limiting myself to,
> say, 5 textboxes with "browse" buttons next to them. Then, the user
> selects 1-5 images, clicks "UPLOAD" (or submit, or whatever), and the
> upload begins, with the SQL statement to follow. I can figure out the
> SQL statement (I think) better than I can the array to step through.
>
> Any suggestions on code to lookup?
>
> Thanks
to use file upload build in in PHP or/and use GD2 wich is comes with
php latest versions
Here some exampe how to upload one photo :
if (is_uploaded_file($_FILES['photo']['tmp_name'])) {
$imtype=$_FILES["photo"]["type"];
$imsize=$_FILES["photo"]["size"];
$imname=$_FILES["photo"]["name"];
$imtemp=$_FILES['photo']['tmp_name'];
$im = add_image($imtype , $title, $description, $sub_cat)
or die("couldnt add photo");
move_uploaded_file($imtemp, "im1/$im.$extension");
where function add_image adding imaage to DB!
If you wanna to add multi. immages just use for()....
Check my web site:
[url]http://haifa.us[/url]
Bob Guest
-
jmev7 #6
Re: Script to upload images and add to database?
Hi, I think I follow this code, but as a newbie to PHP, not for sure.
Is this all I'll need, or do I need to write an "add_image()" function
to write to the database. If so, I'll have to stay up late figuring
out the first line :)
Thanks> Hi, First are you sure you wanna to use FTP, I think the best way is
> to use file upload build in in PHP or/and use GD2 wich is comes with
> php latest versions
> Here some exampe how to upload one photo :
>
> if (is_uploaded_file($_FILES['photo']['tmp_name'])) {
>
> $imtype=$_FILES["photo"]["type"];
> $imsize=$_FILES["photo"]["size"];
> $imname=$_FILES["photo"]["name"];
> $imtemp=$_FILES['photo']['tmp_name'];
>
> $im = add_image($imtype , $title, $description, $sub_cat)
> or die("couldnt add photo");
> move_uploaded_file($imtemp, "im1/$im.$extension");
>
> where function add_image adding imaage to DB!
> If you wanna to add multi. immages just use for()....
>
>
> Check my web site:
> [url]http://haifa.us[/url]jmev7 Guest
-
Bob #7
Re: Script to upload images and add to database?
Hi
First:
if (is_uploaded_file($_FILES['photo']['tmp_name'])) {
This line checks if you already have this image!
Second: The pictures will be stored on your server,if that what you
need! You may store your photos in DB as blob!
this function will add file, name, ... to db:
function add_image($file, $title, $description, $uid, $jid, $pswd) {
$query="INSERT INTO t_images .......";
execution....
}
[email]jmev7@yahoo.com[/email] (jmev7) wrote in message news:<c72a6456.0311121156.2bd853b9@posting.google. com>...> Hi, I think I follow this code, but as a newbie to PHP, not for sure.
> Is this all I'll need, or do I need to write an "add_image()" function
> to write to the database. If so, I'll have to stay up late figuring
> out the first line :)
>
> Thanks> > Hi, First are you sure you wanna to use FTP, I think the best way is
> > to use file upload build in in PHP or/and use GD2 wich is comes with
> > php latest versions
> > Here some exampe how to upload one photo :
> >
> > if (is_uploaded_file($_FILES['photo']['tmp_name'])) {
> >
> > $imtype=$_FILES["photo"]["type"];
> > $imsize=$_FILES["photo"]["size"];
> > $imname=$_FILES["photo"]["name"];
> > $imtemp=$_FILES['photo']['tmp_name'];
> >
> > $im = add_image($imtype , $title, $description, $sub_cat)
> > or die("couldnt add photo");
> > move_uploaded_file($imtemp, "im1/$im.$extension");
> >
> > where function add_image adding imaage to DB!
> > If you wanna to add multi. immages just use for()....
> >
> >
> > Check my web site:
> > [url]http://haifa.us[/url]Bob Guest



Reply With Quote

