Not sure why this is giving me hell – but I am sure it is an easy fix, that I’m just not seeing.. ?
My query that shows 7 event logos that are upcoming..
[LOGO] [LOGO] [LOGO] [LOGO] [LOGO] [LOGO] [LOGO]
$query_Recordset3 = "SELECT id, event_type, event_type_2, event_name,
event_logo,event_date FROM event_calendar WHERE review_live = 1 AND
event_logo > '0' AND event_date >= CURDATE() ORDER BY event_date ASC
LIMIT 7";
My little problem: If I have event without a logo.. so it shows just one or a couple instead of 7.
How it is now if there is two events with logos:
[LOGO] [LOGO] [x] [x] [x] [x] [x]
I am trying to come up with a way to show a default for the rest of my “logo images”
How I want it to look
[LOGO] [LOGO] [default] [default] [default] [default] [default]
Is my query not right or do I just need to do a fancy “do while” ??
Thanks my NINJAS!! Sorry if there is other do while and query questions.. i just didn’t find exactly what i was looking for 🙂
Just count the number of rows you got and then fill up until you have 7 logos