Morning all.
I would like to know if anybody could e-mail an example of code to upload
files into a MySQL server using PHP from
a form.
Thanks a lot.
Best Regards,
RENZO CLAVIJO
Morning all.
I would like to know if anybody could e-mail an example of code to upload
files into a MySQL server using PHP from
a form.
Thanks a lot.
Best Regards,
RENZO CLAVIJO
What exactly do you mean?
Best regards
/Gustav Wiberg
--
PHP General Mailing List (http://www.php.net/)
Renzo Clavijo wrote:
Morning all.
I would like to know if anybody could e-mail an example of code to upload
files into a MySQL server using PHP from
a form.
recently a new phenomenon has appeared online, namely search engines:
What's wrong with my code?
?php
if($file)
{
print(file name :$file_nameP\n);
if (copy($file,http://sarjito/img/;))
{
print(file uploaded);
}
unlink($file);
}
?
Any advise is welcome.
Thanks,
Dani
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Give a destination file name, not just the directory. You don't have to
unlink($file), it's done automatically when the script ends.
---John Holmes...
- Original Message -
From: Dani [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Saturday, May 25, 2002 7:58 PM
Subject: [PHP] UPLOADING
I have tried to use the filename but it's still not working.
here is the whole code I've got:
** First file called 'upload.php'
html
head
titleUntitled Document/title
meta http-equiv=Content-Type content=text/html; charset=iso-8859-1
/head
body bgcolor=#FF text=#00
form name=form1
it.
---John Holmes...
- Original Message -
From: Dani [EMAIL PROTECTED]
To: 1LT John W. Holmes [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, May 25, 2002 8:24 PM
Subject: Re: [PHP] UPLOADING IMAGE
I have tried to use the filename but it's still not working.
here is the whole code
...
- Original Message -
From: Dani [EMAIL PROTECTED]
To: 1LT John W. Holmes [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, May 25, 2002 8:24 PM
Subject: Re: [PHP] UPLOADING IMAGE
I have tried to use the filename but it's still not working.
here is the whole code I've got
Holmes...
- Original Message -
From: Dani [EMAIL PROTECTED]
To: 1LT John W. Holmes [EMAIL PROTECTED]
Cc: [EMAIL PROTECTED]
Sent: Saturday, May 25, 2002 8:24 PM
Subject: Re: [PHP] UPLOADING IMAGE
I have tried to use the filename but it's still not working.
here
database ... the script seems to be working, in that its not giving errors
You're not asking it to give you error messages :-)
?php
if ($submit) {
MYSQL_CONNECT(localhost,user,pass);
... or die(Could not connect to database)
mysql_select_db(binary_date);
... or die(Could not
Hi,
I'm trying to get a script working that will upload an image to a MySQL
database ... the script seems to be working, in that its not giving errors
- but it does nothing ... it doesn't add the image to the database at all.
Can someone take a look at this script and let me know where I've
11 matches
Mail list logo