Hello i have a database table with lot of names I'm stuck on getting a SELECT to work and show results Here is the code i have :
$sql = 'SELECT Father, count(*) AS NumChildren
FROM people
GROUP BY Father
HAVING NumChildren > 5
ORDER BY NumChildren DESC';
This will hopefully get the Names of Fathers that have more than 5 children I cannot find a way to diplay the results into a Table.
I want the results to appear like the following eample :
Name of Father
Matthew
Marc
Martin
Number of Children
17
15
10
but in a table side by side etc, etc.
Thanks for the replies.