I have a table with project files and i am selecting project files that have the same date and display them in a row. For example:
date x --- a b c d
date y ---e f g h
date z----- i j
each row has 4 places to hold the result as i don’t anticipate having more than 4 projects per day.
I have used the query below to get distinct dates
$sql = "SELECT DISTINCT date FROM project_files WHERE projectNumber = something";
$result = mysql_query($sql) ;
Is there an easy way of getting data for each row and displaying it?
Try this: