php XAMPP Fatal error: Uncaught Error: Call to undefined function mysql_connect()

You probably have a php7 in XAMPP Please use PDO. mysql_* functions have been removed in PHP 7 You can use mysqli_connect($mysql_hostname , $mysql_username) instead of mysql_connect($mysql_hostname , $mysql_username)   Fatal error: Uncaught Error: Call to undefined function mysql_connect() in C:\xampp\htdocs\ .php:13 Stack trace: #0 C:\xampp\htdocs\chat\index.php(2): include() #1 {main} thrown in C:\xampp\htdocs\chat\config.php on line 13

anvar

PHP Syllabus for self learners

PHP Basics How PHP Works The php.ini File Basic PHP Syntax PHP Tags PHP Statements and Whitespace Comments PHP Functions Hello World! Variables Variable Types Variable Names (Identifiers Type Strength Hello Variables! Variable Scope Superglobals Constants Variable-Testing and Manipulation Functions PHP Operators Creating Dynamic Pages Single Quotes vs. Double Quotes Howdy World! Flow Control Conditional … Read morePHP Syllabus for self learners

anvar
WhatsApp Logo Chat