|
|
| Perl Monk, Perl Meditation | |
| PerlMonks |
Modifying Perl script to write to MySQL??by bobafifi (Beadle) |
| on Feb 14, 2004 at 17:18 UTC ( [id://329045]=perlquestion: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.bobafifi has asked for the wisdom of the Perl Monks concerning the following question:
The Perl Guestbook script I use prints the
form results ($guestbookreal) to an html page
(http://example.com/new_listings_publish.html):
For example, here is a typical form result: I then post the ads to MySQL by copying and pasting the INSERT INTO statements into "Run SQL query/queries" window on the phpMyAdmin interface provided by my host and hitting "GO." Though the above method works, I'd like to bypass the copy & paste step if possible. Can somebody please be so kind as tell me how (or if it's even possible) I need to change the following code so that it will write the results directly to MySQL instead?? For example: $guestbookreal = "/home/flute/example-www/new_listings_publish.html"; # becomes (and I know this isn't legit...): # anyhow...something like that perhaps?? Many thanks in advance, -Bob Edited by BazB: added code tags
Back to
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||