note 114028 deleted from class.sqlite3result by tularis
| From: | tularis@php.net | Date: | Sun, 05 Jan 2014 16:26:04 +0000 |
| Subject: | note 114028 deleted from class.sqlite3result by tularis | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-198118@lists.php.net to get a copy of this message | ||
Note Submitter: vascodeagilare at gmail dot com
----
for catch zero row I use:
<?php
$ret = $db->query($sql);
if ($ro = $ret->fetchArray(SQLITE3_ASSOC)) {
//work with $ro
while($row = $ret->fetchArray(SQLITE3_ASSOC)){
//work with $row
}
}
else echo "nothing found";
?>