|
-
May 20th, 2006, 06:56 AM
#1
Thread Starter
Frenzied Member
[RESOLVED] How to replace image with default image ?
I am using this code to display cd cover image and for some cds i do not have their cover pic in my db.Therefore,that feilad is empty . Is there a way in those case to put a default image such as covert does not exist image instead?
<img src="./CdImages/<?=strval( $row['visual'] );?>"
In anotherword, if <?=strval( $row['visual'] );?> produces no record replace it with for example nocd.jpg.
Last edited by tony007; May 20th, 2006 at 07:58 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|