John R. Lenz wrote:
> I have two of David Powers' books
Only two? ;-)
> What I'd like to be able to do is have an Admin page on
a CMS that
> allows for not only the insertion of a
headline/subhead/body, but also
> an image. I'd like the image to be uploaded to the
website (not the DB,
> which is hosted on a different server)
You can either hand-code the image upload (there are details
in "PHP
Solutions"), or get an extension to handle it for you. I've
not used any
of the extensions, so can't comment on how good/bad they are.
> Also, if there's not an image available for the event,
I'd like the page
> to display correctly without showing a broken image
icon.
That's a simple if... else condition.
if (!empty($row_recordsetName['image'])) {
// display the image
}
--
David Powers, Adobe Community Expert
Author, "The Essential Guide to Dreamweaver CS3" (friends of
ED)
Author, "PHP Solutions" (friends of ED)
http://foundationphp.com/