Hi.

Im new to PHP/SQL, and have this little tricky problem i cant find a solution for:

$result = mysql_query("SELECT * FROM Activities ORDER BY weekday");

while($row = mysql_fetch_array($result))
{
    echo $row['weekday'];
}

Now this will output

Monday
Sunday
Thursday
Tuesday
etc. - in alpabetic order.

Instead, i want it to sort in:

Monday
Tuesday
Wednesday
and so on..

Furthermore, I´m from denmark, so the result should be printed with danish weeknames:

Mandag (monday)
Tirsdag (tuesday)
and so on..

How do I do this? :S

Thanks alot :)

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.