ok so i have a database of contacts so a company can add and remove information from the contact list. we decided to do a image of each person. i made a image that is a placeholder if the image field is empty but i'm having trouble setting it up now. heres what i have:
<img src="<?php echo $row_contacts['image']; ?>" width="128" height="128">
that is the code to get the image from the image field in mysql. how can i code that to do like a if image field is empty then display this image <img src="/images/noimage.jpg" width="128" height="128">
thanks for the help...hopefully,
Edanlee
<img src="<?php echo $row_contacts['image']; ?>" width="128" height="128">
that is the code to get the image from the image field in mysql. how can i code that to do like a if image field is empty then display this image <img src="/images/noimage.jpg" width="128" height="128">
thanks for the help...hopefully,
Edanlee