(Running ubuntu server 12.04)
This line in particular is giving me issues in php:
$con = mysql_connect("localhost:3306","root","root");
From turning on error reporting, I only got this returned (as it was killed at that line and nothing afterwards would print):
Fatal error: Call to undefined function mysql_connect() in /var/www/sql/login.php on line 7
I'm not sure where to go from there, as it is just killed at the line I provided. I have used just "localhost" as well, and I have successfully logged in from the command line. Could this be a php permissions issue, or something like configuration? If so, where would that be?
mysqli_connect()
instead...