Php and Sql connection query
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.