I have ran aptitude install php5-mysql (and restarted MySQL/Apache 2), but I am still getting this error:
aptitude install php5-mysql
Fatal error: Call to undefined
There must be some syntax error. Copy/paste this code and see if it works:
I had the same error message. It turns out I was using the msql_connect() function instead of mysql_connect().
msql_connect()
mysql_connect()