PHP Classes

File: mysql_dialog_test

Recommend this page to a friend!
  Classes of Giorgos  >  MySQL Dialog  >  mysql_dialog_test  >  Download  
File: mysql_dialog_test
Role: Example script
Content type: text/plain
Description: Testing the mysql_dialog class
Class: MySQL Dialog
Execute MySQL queries and display results in HTML
Author: By
Last change:
Date: 17 years ago
Size: 602 bytes


Class file image Download
$host="localhost"; // Your MySQL Host
$user="root"; // Your MySQL User
$pass=""; // Your MySQL Password
$dbase="test"; // Name of your MySQL Database
$sql="show tables"; // SQL String to send to the Database Server

$db=new mysql_dialog("1"); // with "1" possible errors will be printed
while (
for (
$x=0; $x<$db->fields; $x++){
"Number of rows: ".$db->rows."<br>";
"Number of fields: ".$db->fields."<br>";

For more information send a message to info at phpclasses dot org.