PHP Classes

File: showtables.php

Recommend this page to a friend!
  Classes of Pierre FAUQUE   nbrecs class   showtables.php   Download  
File: showtables.php
Role: Example script
Content type: text/plain
Description: Script using the class
Class: nbrecs class
Extract and list MySQL database table information
Author: By
Last change:
Date: 13 years ago
Size: 571 bytes
 

Contents

Class file image Download
<html>

<head>
<title>Stats of MySQL tables</title>
<style type="text/css">.o {font-weight:normal;}</style>
</head>

<body>

<?php
require("class.nbrecs.php");

// Connection informations written in the class itself
$stats1 = new nbrecs();
$stats1->showtables();

echo
"<hr size='2' color='red' noshade>";

// Connection informations provided at the instanciation
// $var = new nbrecs("mysql_server","database","mysql_user","password");
$stats2 = new nbrecs("localhost","xxxxxxx","yyyyyyy","zzzzzzz");
$stats2->showtables();
?>

</body>

</html>