Deprecated: mysql_connect()

Asked

Viewed 36 times

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

No answers

Browser other questions tagged

You are not signed in. Login or sign up in order to post.