The PHP built-in functions for accessing mysql are IMO just too messy and unportable (to other databases) to be really useful, though it does have a
nicer layer called DB on PEAR.
Anyway, using perl's DBI or PHP's DB should not make much difference in practice. Unless ofcourse you already know perl, in which case you should probably be using perl :-). DBI is one of the most tested and used CPAN libraries out there (especially in conjunction with its MySQL adapter DBD::mysql) so you don't need to worry about that.
If you are interested in a higher level abstraction and you'd like an object-oriented interface, you can take a look at Class::DBI which is build on top of DBI and can be very useful. I'm sure PHP has something similar, but I haven't looked for it. Bottom line: if you know perl well enough, there is no reason to turn to PHP just for database support.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.