PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

sqlite_has_prev> <sqlite_field_name
Last updated: Fri, 22 Aug 2008

view this page in

sqlite_has_more

(PHP 5, PECL sqlite:1.0-1.0.3)

sqlite_has_moreRetorna quando existem ou não mais linhas disponíveis

Descrição

bool sqlite_has_more ( resource $result )

Verifica se mais linhas estão disponíveis para um dado conjunto de resultados.

Parâmetros

result

O resource de resultado do SQLite.

Valor Retornado

Retorna TRUE se há mais linhas disponíveis para o manipultador result , ou FALSE caso contrário.



add a note add a note User Contributed Notes
sqlite_has_more
dragosmocrii at gmail dot com
06-Apr-2008 08:08
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);
?>

sqlite_has_prev> <sqlite_field_name
Last updated: Fri, 22 Aug 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites