MySQL Forums
Forum List  »  PHP

Re: old mysql & xampp
Posted by: Peter Brawley
Date: January 17, 2021 11:21AM

> $connection=mysql_connect("localhost","nogndk_site","XXXXXXX");

The mysql api is obsolete, has been removed. Use the mysqli api.

And allow yourself to see errors, eg minimally ...

$conn = mysqli)_cinnect(...) or exit( mysqli_connect_error() );

For production of course you would log that error and show the user something less technical.

Options: ReplyQuote


Subject
Written By
Posted
January 17, 2021 08:52AM
Re: old mysql & xampp
January 17, 2021 11:21AM
January 18, 2021 02:45AM
January 18, 2021 01:55PM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.