okay, I'm not too good with PHP, but I've been trying my best. So far, I have something along the lines of this:
$img1 = "http://www.pic.com/pic.jpg"
$img2 = "default.jpg"
now I want $img1 to load as the image, but should it not be able to load (the hosting server is offline, picture was deleted, etc.) then it will display $img2. I can't seem to put together a workable code, though I think it probably utilizes the "if", or "else" conditions. If at all possible could someone show me what the code is??? I've been up all night trying to figure this out!
2006-09-24
01:21:16
·
2 answers
·
asked by
detroitkid17
2
in
Computers & Internet
➔ Other - Computers