You might want to switch over to mysqli or PDO for your connection, don't know by heart when it was removed but using mysql_xxx has been depreceted for a while. Simplest is to switch to mysqli_xxx, for most statements it is as easy as just changing mysql_connect to mysqli_connect etc. Some have minor syntax changes, such as mysql_connect() now takes four parameters, where the last one lets you select the database right away instead of using mysql_select_db() after the connection has been set up (you can still use that with mysqli as well though). I know there's a few more syntax changes too, but I haven't really had much reason to look them up.