Código:
Parse error: syntax error, unexpected T_VARIABLE in /home/a9673496/public_html/ssl/mysql/index.php on line 1
y el codigo es el siguiente:
Código
<?php $dbdata['usuario'] = "**"; $dbdata['contrasena'] = "**"; $dbdata['host'] = "**"; $dbdata['database'] = $dbdata['usuario']; $dbdata['conexion'] = mysqli_connect($dbdata['host'],$dbdata['usuario'],$dbdata['contrasena'],$dbdata['database']) or die("Error " . mysqli_error($link)); if ($dbdata['conexion']->connect_errno) { echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; } echo $mysqli->host_info . "\n status [ Connected ]"; $dbdata['conexion']->close($dbdata['conexion']); if ($dbdata['conexion']->connect_errno) { echo "Failed to connect to MySQL: (" . $mysqli->connect_errno . ") " . $mysqli->connect_error; } ?>