| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
I'd like to emphasize another way to approach this function.
To check if the return query is null:
Let's say that the table contains a field called 'data'.
if ($ret) {
if (pg_field_is_null($ret, 'data') == 0) {
echo "Nothing returned\n";
<insert code>
}
}
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 2a04:cec0:c021:b19c:3c9:f5e6:9634:a88a)
----
Manual Page -- https://php.net/manual/en/function.pg-field-is-null.php
Edit -- https://main.php.net/note/edit/130353
Del: integrated -- https://main.php.net/note/delete/130353/integrated
Del: useless -- https://main.php.net/note/delete/130353/useless
Del: bad code -- https://main.php.net/note/delete/130353/bad+code
Del: spam -- https://main.php.net/note/delete/130353/spam
Del: non-english -- https://main.php.net/note/delete/130353/non-english
Del: in docs -- https://main.php.net/note/delete/130353/in+docs
Del: other reasons-- https://main.php.net/note/delete/130353
Reject -- https://main.php.net/note/reject/130353
Search -- https://main.php.net/manage/user-notes.php