| Newsgroups |
php.notes |
| Message-ID |
<[email protected]> |
if you intend to use the function in WHERE expressions. Absolutely, absolutely!!! Specify equality.
Example:
function my_function()
{
if (/** condition */) {
/** code... */
}
return false;
}
"SELECT * FROM _table WHERE my_function() = 1"
If this is not done, then hallucinations with sampling begin.
----
Server IP: 45.112.84.4
Probable Submitter: 80.90.5.137 (proxied: 217.107.125.62)
----
Manual Page -- https://php.net/manual/en/pdo-sqlite.createfunction.php
Edit -- https://main.php.net/note/edit/130519
Del: integrated -- https://main.php.net/note/delete/130519/integrated
Del: useless -- https://main.php.net/note/delete/130519/useless
Del: bad code -- https://main.php.net/note/delete/130519/bad+code
Del: spam -- https://main.php.net/note/delete/130519/spam
Del: non-english -- https://main.php.net/note/delete/130519/non-english
Del: in docs -- https://main.php.net/note/delete/130519/in+docs
Del: other reasons-- https://main.php.net/note/delete/130519
Reject -- https://main.php.net/note/reject/130519
Search -- https://main.php.net/manage/user-notes.php