<?php
include("db.class.php");
define("DBSERVER","localhost");
define("DBUSER","");
define("DBPASSW","");
define("DBNAME","");
$mydba=new dbOpts();
$mydba->opendb();
//$my_res=$mydba->select_sql(array("*"),"table_name");
//$my_res=$mydba->select_sql(array("*"),"table_name","where_field_name='where_field_val'");
//$my_res=$mydba->update_sql("table_name",array("field1","field2",....),array("val1","val2",....),"where_field_name='where_field_val'");
//$my_res=$mydba->insert_sql("table_name",array("field1","field2",....),array("val1","val2",....));
//$my_res=$mydba->delete_sql("table_name","where_field_name='where_field_val'");
//$my_res=$mydba->execute_sql("enter_here_your_sql");
?>
|