note 114028 added to class.sqlite3result
| From: | vascodeagilare at gmail dot com | Date: | Thu, 02 Jan 2014 17:55:03 +0000 |
| Subject: | note 114028 added to class.sqlite3result | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-198083@lists.php.net to get a copy of this message | ||
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";
?>
----
Server IP: 72.52.91.14
Probable Submitter: 72.52.91.14
----
Manual Page -- http://php.net/manual/en/class.sqlite3result.php
Edit -- https://master.php.net/note/edit/114028
Del: integrated -- https://master.php.net/note/delete/114028/integrated
Del: useless -- https://master.php.net/note/delete/114028/useless
Del: bad code -- https://master.php.net/note/delete/114028/bad+code
Del: spam -- https://master.php.net/note/delete/114028/spam
Del: non-english -- https://master.php.net/note/delete/114028/non-english
Del: in docs -- https://master.php.net/note/delete/114028/in+docs
Del: other reasons-- https://master.php.net/note/delete/114028
Reject -- https://master.php.net/note/reject/114028
Search -- https://master.php.net/manage/user-notes.php