Sorry, I thought making it with variables would make it easy, but here's what I have:
Table Name: schools
SchoolID | SchoolName | Student
School1 | SchoolName1 | John Smith
School1 | SchoolName1 | Jane Doe
School2 | SchoolName2 | Ted Harvey
Now, I have a page where I want to display the SchoolName and not repeat the 2nd row. So all it would show is SchoolName1 and SchoolName2.
Right now I have the following script:
$result = mysql_query("SELECT * FROM schools SchoolName ORDER BY SchoolName",$db);
I tried to add the Distinct to that, but it didnt work. Should that be working?
Thanks