Zakrzewski, Jakub wrote > It's because `execute()` returns a boolean (as stated in the manual > https://www.php.net/manual/en/pdostatement.execute.php ). `fetch()` must > be called on `$query`
Thanks much! ========= $query = $dbh->prepare("SELECT mode_txt FROM mode WHERE mode_id=? LIMIT 1"); $query->execute(array($mode)); $result = $query->fetch(PDO::FETCH_ASSOC); if($result){ print($result["mode_txt"] . "<p>"); } else print("Bad!<p>"); ========= -- Sent from: http://sqlite.1065341.n5.nabble.com/ _______________________________________________ sqlite-users mailing list sqlite-users@mailinglists.sqlite.org http://mailinglists.sqlite.org/cgi-bin/mailman/listinfo/sqlite-users