Uncaught Error: Call to undefined function (Help?)

Problems with the Windows version of XAMPP, questions, comments, and anything related.

Uncaught Error: Call to undefined function (Help?)

Postby MrAdamsB » 03. May 2018 14:55

Hello! I'm COMPLETELY new to using php and mysql.

Anywho- I've coded and set some stuff up. Basically I'm making a comment table. However! Anytime I hit enter, the webpage I made redirects me to something that says around the lines of-

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

How do I fix this? I'm not exactly sure what my username/pass for the DB is- nor do I know how to find it. Is that why I'm receiving this error message?
MrAdamsB
 
Posts: 1
Joined: 03. May 2018 14:50
XAMPP version: 3.2.2
Operating System: Windows 10

Re: Uncaught Error: Call to undefined function (Help?)

Postby Nobbie » 03. May 2018 21:14

MrAdamsB wrote:How do I fix this?


De-Install your Xampp Installation (which is 7.x) and install Xampp 5.x instead. The mysql_xxxx functions have been removed with PHP 7.x

Or:

use mysqli_ functions (and/or classes) instead. Its on you.
Nobbie
 
Posts: 13170
Joined: 09. March 2008 13:04


Return to XAMPP for Windows

Who is online

Users browsing this forum: Nobbie and 142 guests