Call to undefined function mysql_connect()

Problems with the Mac OS X version of XAMPP, questions, comments, and anything related.

Call to undefined function mysql_connect()

Postby tescophil » 15. February 2018 12:47

Hi,

Installed on MacOS fine, phpMyAdmin running OK, and I've created a database with tables I want to access from PHP, however when I try and connect from a PHP script using the mysql_connect() method I get :

Call to undefined function mysql_connect()

Am I missing something here, I thought the whole point of XAMPP was it was configured out of the box to allow this ?

Thanks.
Phil.
tescophil
 
Posts: 2
Joined: 15. February 2018 11:56
XAMPP version: 7.2.1
Operating System: Mac OS High Sierra

Re: Call to undefined function mysql_connect()

Postby Altrea » 15. February 2018 19:42

Hi,

tescophil wrote:Am I missing something here, I thought the whole point of XAMPP was it was configured out of the box to allow this ?

Read the manual: http://php.net/manual/en/function.mysql-connect.php

best wishes,
Altrea
We don't provide any support via personal channels like PM, email, Skype, TeamViewer!

It's like porn for programmers 8)
User avatar
Altrea
AF Moderator
 
Posts: 11935
Joined: 17. August 2009 13:05
XAMPP version: several
Operating System: Windows 11 Pro x64


Return to XAMPP for macOS

Who is online

Users browsing this forum: No registered users and 12 guests