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

fbsql num rows function syntax tag tutorial 2013





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

Php fbsql num rows () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 4 >= 4.0.6, PHP 5)

fbsql_num_rows -- Get number of rows in result

Syntax

int fbsql_num_rows ( resource result )

fbsql_num_rows() returns the number of rows in a result set. This command is only valid for SELECT statements. To retrieve the number of rows returned from a INSERT, UPDATE or DELETE query, use fbsql_affected_rows().

Example 1. fbsql_num_rows() example

<?php

$link
= fbsql_connect("localhost", "username", "password");
fbsql_select_db("database", $link);

$result = fbsql_query("SELECT * FROM table1;", $link);
$num_rows = fbsql_num_rows($result);

echo
"$num_rows Rows\n";

?>

See also: fbsql_affected_rows(), fbsql_connect(), fbsql_select_db(), and fbsql_query().

Php fbsql num rows Function syntax tag

fbsql 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 fbsql 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