Qual é a forma correta de conectar o PHP a um banco de dados MySQL?

$conecta = connect("HOST", "LOGIN", "SENHA") or print (error());

$conecta = mysql_connect("HOST", "LOGIN", "SENHA") or print (error());

$conecta = mysql_connect("HOST", "LOGIN", "SENHA") or print (mysql_error());

$conecta = new MySQL("HOST", "LOGIN", "SENHA") or die (Mysql->error());

$conecta = mysql("HOST", "LOGIN", "SENHA") or print (mysql_error());
Please enter comments
Please enter your name.
Please enter the correct email address.
You must agree before submitting.

Lista de comentários


Helpful Social

Copyright © 2024 ELIBRARY.TIPS - All rights reserved.