At 08:59 AM 11/22/2005 +0800, Mr.Cheung wrote:
>Hi,
>I install mysql database,apache server,perl and mysql module in my computer,
>if anyone upload picture via website then the perl script record picture's
>URL and save in a mysql database, but hot to write this perl script? Can you
>give me a example?Thank you very much.
I guess u mean that someone will put a URL into a web form and you want that
saved? U can use the CGI module for that.
$url = param("url_field");
$sql = "INSERT INTO table SET `url` = '$url'";
$dbi->prepare($sql);
$dbi->execute;
That's basically what it comes down to. For the particulars, u'll have to
set those up to ur own liking. The documentation for the modules and Apache
and MySql go into great detail. Any more than that and I'ld be duplicating
those tutorials.
--
REMEMBER THE WORLD TRADE CENTER ---=< WTC 911 >=--
"...ne cede malis"
00000100
_______________________________________________
Perl-Win32-Users mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs