Hi
I am creating a database that shows a picture of whoevers birthday is in the current month for my local football team.
I have this working fine. When there is a birthday and the picture is there.
What I cant seem to get though is a default picture if there is no birthdays in the current month. It just shows as if there is a picture missing with the X.
The code I used for the image is
<img src="images/<?php echo $row_RS_Birthdays['Image']; ?>" alt="Thumbnail">
and then for the name its the code below
<?php echo $row_RS_Birthdays['Name']; ?>
The name is not a problem when there are no birthdays.
So my question is, can I have an image saying no birthdays or is there some code that says if no birthdays in database then show nothing ?
Also is there any code that will make the data go vertical and not horizontal ?
Thanks in advance
Dicko