Latest Release db3.class.php 1.0



Other Projects Using db3.class.php

diabloknights.com

study.ca

IWantMarry.com



Contact: sscyip@gmail.com

db3.class.php - PHP MySQL Database Class (Object-oriented)

The easiest way to use MySQL in PHP

image

Tired of using traditional SQL?

nSQL db3.class.php can improve your coding efficiency!

How to Use?

Simply download the package, change the config.inc.php, that's it.

			$test = new db3('test');

			// Sample insert //
			$data["name"]="stephen";
			$data["message"]="this is a test 12345";
			$test->insert($data);

			// Sample select //
			// select for record(s) with name stephen
			$test->select("name='stephen'");	
			while ($row = $test->get()) {
				$name= $row['name'];
				$message = $row['message'];
				print "$name $message\n";
			}

			// Sample Update //
			$data["message"]="changed message";
			$test->update($data, "id=3");

			// Sample delete //
			//$test->delete("id='3'");