• home
  • forum
  • my
  • kt
  • download
  • Total Number Of Rows In MYSQL

    Author: 2009-03-08 10:00:49 From:

    This tutorial will help you calculate the total number of rows in your MYSQL table with ease using simple php scripts.

    < ?php

    $link = mysql_connect("localhost", "root", "");
    mysql_select_db("mails", $link);

    $result = mysql_query("SELECT * FROM mail", $link);
    $a = mysql_num_rows($result);

    echo "$a Rows\n";

    ?>

    discuss this topic to forum

    relation tutorial

    No information

    Category

      Ad Management (6)
      Calendars (3)
      Chat Systems (8)
      Content Management (41)
      Cookies and Sessions (12)
      Counters (15)
      Database Related (30)
      Date and Time (13)
      Development (19)
      Discussion Boards (8)
      E Commerce (8)
      Email Systems (13)
      Error Handling (7)
      File Manipulation (24)
      Flash and PHP (6)
      Form Processing (19)
      Guestbooks (12)
      Image Manipulation (21)
      Installing PHP (7)
      Introduction to PHP (23)
      Link Indexing (8)
      Mailing List Management (9)
      Miscellaneous (53)
      Networking (8)
      News Publishing (9)
      OOP (24)
      PEAR (6)
      PHP vs Other Languages (2)
      Polls and Voting (6)
      Postcards (1)
      Randomizing (14)
      Redirection (11)
      Searching (9)
      Security (29)
      Site Navigation (16)
      User Authentication (14)
      WAP and WML (7)
      Web Fetching (8)
      Web Traffic Analysis (15)
      XML and PHP (16)

    New

    Hot