Php and Sql connection query

Asked By 0 points N/A Posted on -
qa-featured

Is there any STANDARD query about PHP connecting through SQL.

I've done a lot of research but the web was too genius and gave me tons of answer , where I can't test them all . It's a waste of time. So I came here to ask a Question Directly .

I repeat, is there any STANDARD query about PHP connecting through SQL.

connection = mysql_connect($host,$user,$password)

or die("Could not connect: ".mysql_error());

mysql_select_db($database,$connection) 
	or die("Error in selecting the database:".mysql_error());

Please specify the errors that I committed.

Thanks.

SHARE
Answered By 0 points N/A #126300

Php and Sql connection query

qa-featured

Since you've exactly pointed out, hold for the area mssql driver is not compiled into the most recent Windows PHP binaries.  Currently the existing firm is free of mdb2 “2.4.1” and does not hold the certified Microsoft sqlsrv local driver.

Though you're prepared to reside on the border, a bit by the beta discharge of mdb2 then all is not lost. Here is a Microsoft local sqlsrv driver that is a component of the in 2.5.0b3 discharge:

Use compatible software in your system. In that case the problem will be set, if not you can add another one that is compatible with your system.

Thanks.

Login/Register to Answer

Related Questions