Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

sqlite num rows function syntax tag tutorial 2013





Alert! Connect with 10,000 Chating Online. Join Now

Php sqlite num rows () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 5)

sqlite_num_rows

(no version information, might be only in CVS)

SQLiteResult->numRows -- Returns the number of rows in a buffered result set

Syntax

int sqlite_num_rows ( resource result )

Object oriented style (method):

class SQLiteResult {

int numRows ( void )

}

Returns the number of rows in the buffered result set.

Parameters

result

The SQLite result resource. This parameter is not required when using the object-oriented method.

Note: This function cannot be used with unbuffered result handles.

Examples

Example 1. Procedural example

<?php
$db
= sqlite_open('mysqlitedb');
$result = sqlite_query($db, "SELECT * FROM mytable WHERE name='John Doe'");
$rows = sqlite_num_rows($result);

echo
"Number of rows: $rows";
?>

Example 2. Object-oriented example

<?php
$db
= new SQLiteDatabase('mysqlitedb');
$result = $db->query("SELECT * FROM mytable WHERE name='John Doe'");
$rows = $result->numRows();

echo
"Number of rows: $rows";
?>

Php sqlite num rows Function syntax tag

sqlite num rows php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online



Php sqlite num rows syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.


Function index

Variables

Expressions

Operators

Control-Structures

Cookies

Array

Date & Time

Directory function

File

Image

Operators

Form data handling

Mathematics operators

Mail

Php Mysql

Network Functions

Strings

php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
 
 
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online