Hi there;
I have a problem formating the data I have in my opening hours database
SELECT mo,tu,we,th,fr,sa,su FROM guide where id=etc.
now I can do
if ($mo) {
echo "mo:$mo,"
} etc.
which for instance would result in:
mo:x,tu:12-4,we:12-4,th:12-4,fr:12-5,sa:12-5,su:x
As you understand I would much rather have:
su-mo:x, tu-th:12-4, fr,sa:12-5
Does anymody have a strategy how to go about this?