You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Jenom pro poradek, Arrays::associate do Utils a Database::fetch do core?
Tedka tam je kod:
// vrátí asociativní pole id => name$pairs = $database->fetchAssoc('SELECT id, name FROM users');
// vrátí všechny záznamy jako pole$rows = $result->fetchAll('SELECT * FROM users');
// vrátí jeden záznam$row = $result->fetch('SELECT * FROM users WHERE id = ?', $id);
// vrátí přímo hodnotu buňky$name = $result->fetchField('SELECT name FROM users WHERE id = ?', $id);
Chtel by jsi to s popisem parameteru jo? Kdyz je key i value, jenom key, jenom value, asi vid?
Database
Array
The text was updated successfully, but these errors were encountered: