# mysql\_connect(); error

**URL:** <https://forum.kirupa.com/t/mysql-connect-error/212460>\
**Category:** programming\
**Created:** [January 11, 2007, 7:52am UTC](https://forum.kirupa.com/t/mysql-connect-error/212460 "2007-01-11T07:52:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![seth\_aldridge](https://avatars.discourse-cdn.com/v4/letter/s/90db22/32.png) [@seth\_aldridge](https://forum.kirupa.com/u/seth_aldridge)\
**Post date:** [January 11, 2007, 7:52am UTC](https://forum.kirupa.com/t/mysql-connect-error/212460/1 "2007-01-11T07:52:23Z")

</div>

I recently upgraded to PHP5 and for some reason I am having issues with a website that uses the mysql\_connect() command and it is giving me this error.

**Fatal error** : Call to undefined function mysql\_connect() in **/home/httpd/vhosts/therealclays.com/httpdocs/dbinclude.php** on line \*\*2

\*\*I am assuming they removed this function in PHP 5. What would I replace it with?
