note 82338 deleted from function.sqlite-has-more by cmb

From: Date: Mon, 02 Nov 2020 15:00:46 +0000
Subject: note 82338 deleted from function.sqlite-has-more by cmb
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-215739@lists.php.net to get a copy of this message
Note Submitter: dragosmocrii at gmail dot com ---- I use this function to check if an element exists in the database. <?php $cat=$_REQUEST['cat']; $db=sqlite_open('./sqlite_database.db',0666,$err) or die(); $query='select * from catsub where cat=\''.$cat.'\''; $result=sqlite_has_more(sqlite_query($db,$query)); if($result===true ) echo 'Exists'; else echo 'Doesnt Exist'; sqlite_close($db); ?>

« previous php.notes (#215739) next »