Skip to content

meownosaurus/mysql-class-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

MySQL Class PHP (v.1.0)

Usage

<?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
	}
?>

Bitdeli Badge

About

MySQL Class PHP

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •  

Languages