• Index
  •  » Scripts
  •  » Class for working with MySQL database

Class for working with MySQL database

This is class designed for working with MySQL database .

Example of using:

<?php

require_once "dbmysql.class.php";

$db = new DbMySQL($host_name$database_name$user_name$user_password);
$db->connect() or die("Can't connect to database!");

$sql "SELECT
        *
    FROM
        table_name
    "
;

$result $db->select($sql);
print_r($result);

?>


 

  • Top