I have a list of companies in a MySql table and I'm trying to query the table and display the results alphabetically with a header for each letter of the alphabet. I also need the results displayed in a table with two columns per row.
For example
A
Alpha Company Albatrose Company
Another Company Another Company2
B
Big Company Brother Company
Ball Company Better Company
ect... all through the alphabet.
The query I have now is :
$query = "SELECT vendor_id, name FROM shop_vendor ORDER by name";
Thank you for your help.