Just be aware that in php 7.x has been removed this section of mysql_xxx and you must use the mysqli_xxx version (or the PDO version).