<?php
//Simply include this file on your page
require_once("MySQL.class.php");
//Set up all yor paramaters for connection
$db = new connectDB("localhost","username","password","database",$error_reporting=false,$persistent=false);
//Query the database now the connection has been made
$db->query("SELECT * FROM table") or die($db->error());
//You have several options on ways of fetching the data
//as an example I shall use
while($row=$db->fetch_array()) {
//do some stuff
}
?>
-
Notifications
You must be signed in to change notification settings - Fork 0
meownosaurus/mysql-class-php
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
About
MySQL Class PHP
Resources
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published