diff DBRecord.class.php @ 37:e5f9aa34d06f

change: modify all script for web base setting
author yoneda <epgrec@park.mda.or.jp>
date Tue, 28 Jul 2009 00:00:04 +0900
parents 01a8fdc0cebb
children 8965ef108821
line wrap: on
line diff
--- a/DBRecord.class.php	Mon Jul 27 22:27:54 2009 +0900
+++ b/DBRecord.class.php	Tue Jul 28 00:00:04 2009 +0900
@@ -11,7 +11,7 @@
     function __construct( $table, $property = null, $value = null ) {
 		$settings = Settings::factory();
 		
-		$this->table = $table;
+		$this->table = $settings->tbl_prefix.$table;
 		
 		$this->dbh = @mysql_connect( $settings->db_host , $settings->db_user, $settings->db_pass );
 		if( $this->dbh === FALSE ) throw new exception( "construct:データベースに接続できない" );