Raised This Month: $140 Target: $400
 35% 

mariadb with msql support ( mysqli )


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
csgoandsm
Junior Member
Join Date: Nov 2017
Old 12-25-2017 , 22:02   mariadb with msql support ( mysqli )
Reply With Quote #1

Code:
{
		$this->db_addr = $db_addr;
		$this->db_user = $db_user;
		$this->db_pass = $db_pass;
		
		$this->querycount = 0;
		
		if ( $use_pconnect )
		{
			$this->link = @mysqli_connect("p:".$db_addr, $db_user, $db_pass);
		}
		else
		{
			$this->link = @mysqli_connect($db_addr, $db_user, $db_pass);
		}
		
		if ( $this->link )
		{
			$q = @mysqli_query($this->link, "SET NAMES 'utf8'");
			@mysqli_free_result($q);
			if ( $db_name != '' )
			{
				$this->db_name = $db_name;
				if ( [email protected]_select_db($this->link, $db_name) )
				{
					@mysqli_close($this->db_connect_id);
					$this->error("Could not select database '$db_name'. Check that the value of DB_NAME in config.php is set correctly.");
				}
			}
			return $this->link;
		}
		else
		{
			$this->error('Could not connect to database server. Check that the values of DB_ADDR, DB_USER and DB_PASS in config.php are set correctly.');
		}
	}
https://pastebin.com/qfuyZMQP

https://pastebin.com/uu2ka0xa

https://pastebin.com/2G3hQLpv

https://bitbucket.org/Maverick_of_UC...ith-php-7/diff
__________________

Last edited by csgoandsm; 12-25-2017 at 22:03.
csgoandsm is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 03:18.


Powered by vBulletin®
Copyright ©2000 - 2018, vBulletin Solutions, Inc.
Theme made by Freecode