PHP Classes
elePHPant
Icontem

File: dbMysql/test.php

Recommend this page to a friend!
  Classes of Kemal GENIS  >  DB Classes  >  dbMysql/test.php  >  Download  
File: dbMysql/test.php
Role: Example script
Content type: text/plain
Description: Example script
Class: DB Classes
Access different types of databases
Author: By
Last change: .update
Date: 1 month ago
Size: 392 bytes
 

Contents

Class file image Download
<?php
header
('Content-Type: text/html; charset=utf-8');
include_once
"dbMysql.class.php";

$db = new dbMysql('db_server', 'db_user', 'db_pass', 'db_name');

echo
"<pre>".var_export($db->fetchObject("SELECT p.id, p.page_name, pt.page_title, pt.page_content, pt.page_keyword, p.indate, pt.lang FROM pages p INNER JOIN pages_trans pt ON pt.parent_id = p.id WHERE pt.lang='en'"), true)."</pre>";