Changeset 307 for minimanager/scripts/db_layer/mysql.php
- Timestamp:
- Mar 13, 2008, 8:18:42 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
minimanager/scripts/db_layer/mysql.php
r19 r307 23 23 if ($pconnect) $this->link_id = @mysql_pconnect($db_host, $db_username, $db_password); 24 24 else $this->link_id = @mysql_connect($db_host, $db_username, $db_password, $newlink); 25 25 26 26 if ($this->link_id){ 27 27 if($db_name){ … … 60 60 return ($query_id) ? @mysql_fetch_row($query_id) : false; 61 61 } 62 62 63 63 function fetch_array($query_id = 0){ 64 64 return ($query_id) ? @mysql_fetch_array($query_id) : false; … … 68 68 return ($query_id) ? @mysql_fetch_assoc($query_id) : false; 69 69 } 70 70 71 71 function num_rows($query_id = 0){ 72 72 return ($query_id) ? @mysql_num_rows($query_id) : false; 73 73 } 74 74 75 75 function num_fields($query_id = 0){ 76 76 return ($query_id) ? @mysql_num_fields($query_id) : false; … … 100 100 return ($query_id) ? @mysql_field_name($query_id,$field_offset) : false; 101 101 } 102 102 103 103 function quote_smart($value){ 104 104 if( is_array($value) ) { 105 return array_map( array( 'SQL','quote_smart') , $value);105 return array_map( array(&$this,'quote_smart') , $value); 106 106 } else { 107 107 if( get_magic_quotes_gpc() ) $value = stripslashes($value); … … 116 116 return mysql_error(); 117 117 } 118 118 119 119 function close(){ 120 120 global $tot_queries; … … 125 125 } else return false; 126 126 } 127 127 128 128 function start_transaction(){ 129 129 return;
Note:
See TracChangeset
for help on using the changeset viewer.