Zalorzenia:
- jedyne co wiemy o tabeli to jaka jest jej nazwa

Problem:
- nie wiem jak zliczyc ilosc kolumn/pol w wierszu tabeli
Kod jaki napisałem:
<?php class table { function DisplayTable($table) { $db = new database(); $query = 'SELECT * FROM '.$table.' ORDER BY id DESC'; $result = $db->select($query); $i = 0; { while($i < $fields) { } } } } ?>
Kod ten zmula przegladarke niemilosiernie i wyswietla artefakty.
EDIT-----------------------
Poprawka...ta wersja kodu wyswietla taki oto blad:
Warning: mysql_num_fields(): supplied argument is not a valid MySQL result resource in C:\xampp\htdocs\workspace\CMS\engine\table.php on line 11
Prosze o pomoc.