PHP Fatal Error: call to undefined function mysql_connect() [duplicate] You shouldn't use mysql_* functions to start with. They are deprecated as of PHP 5.5. Use mysqli or PDO instead.