perfekt danke :)
Beiträge von Sleep01
-
-
Habe mal eine frage dazu.
Ich habe in phpMyAdmin nach DESC sortiert aber wie füge ich es in in diesen code?
Wenn ich
in
bekomm ich ein FehlerDas ist der Code abschnitt
Code
Alles anzeigen/** * get_gifts * * @return array */ public function get_gifts() { global $db; $gifts = []; $get_gifts = $db->query("SELECT * FROM gifts"); if ($get_gifts->num_rows > 0) { while ($gift = $get_gifts->fetch_assoc()) { $gifts[] = $gift; } } return $gifts; }Fehler
You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'ASC' at line 1
danke grüßmike