I am trying to create a simple css menu that gets the data from a mysql table.
My idea is to have menu like this
Category 1 - link 1 - li
Your query is wrong
$sql = "SELECT * FROM content WHERE group by category";
should be
$sql = "SELECT * FROM content group by category";
Also since mysql is deprecated avoid using it. Use mysqli or PDO instead