Proste pytanie:
Czemu to nie działa?
Śledziłem ten kod wiele razy, i tak: odwolanie do tabeli poprawne, kolumny hash i lastmodified istnieja i sa zapelnione.
foreach ($tmpDbusers as $tmp) $dbusers[$tmp['hash']] = $tmp;
A mimo to otrzymuję błąd:
Kod
PHP Warning: Illegal string offset 'hash' in /home/konradmm/sql.php on line 12
Linia 12 to jak sie domyslacie:
$dbusers[$tmp['hash']] = $tmp;