[Solved] php and mysqli help needed
The problem is that you are getting multiple rows back and storing your id in one variable that gets overwritten every loop. I would recommend you create a class (if u are going the OO way) and add that to the list instead $sortedData = []; class Fotograf { public $Id; public $Firma; } // … Read more