PHP Classes

File: index.php

Recommend this page to a friend!
  Classes of Waqas Ahmed  >  SQLite and MySQL  >  index.php  >  Download  
File: index.php
Role: Example script
Content type: text/plain
Description: MySQL test file
Class: SQLite and MySQL
Access MySQL and SQLite databases
Author: By
Last change:
Date: 11 years ago
Size: 707 bytes


Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
<meta http-equiv="Content-Type" content="text/html; charset=Cp1252">
<title>Insert title here</title>

    <p>MySQL Test</p>
require_once ('MySQL.php');
    require_once (
$connection = new Database($host, $database, $user, $password);
$dataTable = $connection->Execute('SELECT * FROM EMP');
$content = null;
    while (
$dataTable->MoveNext()) {
$content .= "$dataTable->E_ID<br>";
// or use:
        //$content .= $dt->Field(0) . "<br>";


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