mysql_wrapper.php
/**
	 * Lock the given tables. For ODBC connections this is mapped onto a connection.
	 * @param unknown_type $tables The tables to lock
	 */
Lock the given tables. For ODBC connections this is mapped onto a connection.
@param unknown_type $tables The tables to lock
Lock the given tables . For ODBC connections this is mapped onto a connection . @param unknown_type $tables The tables to lock
function lock_tables( $tables)
	{
		$table_string = "";
		if (is_array( $tables))
		{
		 $table_string = implode( ' WRITE ,', $tables);
		}
		else
		{
		 $table_string = $tables;
		}
		$sql = "LOCK TABLES $table_string WRITE";
		if (!$this->exec( $sql))
		{
			error_log( "the following query had errors: '$sql'", 0);
		};
	}
function lock_tables ( $ tables ) { $ table_string = " " ; if ( is_array ( $ tables ) ) { $ table_string = implode ( ' WRITE ,' , $ tables ) ; } else { $ table_string = $ tables ; } $ sql = " LOCK TABLES  $ table_string  WRITE " ; if ( ! $ this -> exec ( $ sql ) ) { error_log ( " the following query had errors: ' $ sql ' " , 0 ) ; } ; }
Lock the given tables.
Lock the given tables .