MySQL Forums
Forum List  »  PHP

old mysql & xampp
Posted by: Erik RN
Date: January 17, 2021 08:52AM

hi
I have an old site with some databases
trying to make a local testingsite
i have installed xampp and it is running ok
tranmsported all site-files to C:\A_xampp\htdocs\my-web
and using the local phpmyqsl-controlpannel transported one of my database-tables to a database called nogndk_site

the php-connection do not work
I have:
$connection=mysql_connect("localhost","nogndk_site","XXXXXXX");
if (!$connection) { echo "Could not connect to MySQL server!"; exit;}
$db=mysql_select_db("nogndk_site",$connection);

can you help

Options: ReplyQuote


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


Sorry, only registered users may post in this forum.

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.