We had to change to a new server. I ran all the old php 5.0 code through a php 7.4 editor using DZSoft. I made a number of corrections. However connecting to the database on the new server (which runs on php7.4) creates a fatal error. Here is the code I am using:
$conn = mysql_connect("localhost", "metrodmvdb", "password"");
however, this line produces an error:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/metrocourse/public_html/includes/conndb.inc:17 Stack trace: #0 /home/metrocourse/public_html/chkTs93Qgm834fP.php(60): require_once() #1 {main} thrown in /home/metrocourse/public_html/includes/conndb.inc on line 17
what is wrong with my single, simple line of code? godaddy has not a clue either!!!
I even changed the "localhost" to the database IP address. Made no difference at all!
Thanks for your help.
Juergen
$conn = mysql_connect("localhost", "metrodmvdb", "password"");
however, this line produces an error:
Fatal error: Uncaught Error: Call to undefined function mysql_connect() in /home/metrocourse/public_html/includes/conndb.inc:17 Stack trace: #0 /home/metrocourse/public_html/chkTs93Qgm834fP.php(60): require_once() #1 {main} thrown in /home/metrocourse/public_html/includes/conndb.inc on line 17
what is wrong with my single, simple line of code? godaddy has not a clue either!!!
I even changed the "localhost" to the database IP address. Made no difference at all!
Thanks for your help.
Juergen