0
<?php
# FileName="Connection_php_mysql.htm"
# Type="MYSQL"
# HTTP="true"
$hostname_conecta = "localhost";
$database_conecta = "";
$username_conecta = "";
$password_conecta = "";
$conecta = mysql_connect($hostname_conecta, $username_conecta, $password_conecta) or trigger_error(mysql_error(),E_USER_ERROR);
$db = mysql_select_db($database_conecta);
?>
You’re making that mistake:
Deprecated: mysql_connect(): The mysql Extension is deprecated and will be Removed in the Future: use mysqli or PDO Instead in /home/u771688126/public_html/panel/connected/connects.php on line 17
Why should we not use mysql type functions_*? and Mysqli vs PDO - which is the most recommended to use?
– rray
The mistake says you MUST exchange the API for connection to the database. Here has more details about the PDO and the Mysqli
– rray
You don’t necessarily have to use PDO. Use this way: $connected = mysqli_connect('server','user','password','bank'); and in querys use this way: mysqli_query($connected, 'Your query');
– user24136