Sweets287 Posted April 3, 2008 Share Posted April 3, 2008 Help, read previous posts but still can't connect to the database, using a php file on an include to connect and then selecting what I need on pages afterwards. <?php # Script 12.4 - mysql_connect.php // This file contains the database access information. This file also establishes a connection to MySQL and selects the database. // Set the database access information as constants. $Host = 'Host'; $User = 'User'; $Password = 'Password'; $DBName = 'DBName'; $Link = mysql_connect ($Host,$User,$Password); ?> But comes up with the following error msg -Fatal error: Call to undefined function mysql_connect() Link to comment https://forums.phpfreaks.com/topic/99341-connecting-to-database/ Share on other sites More sharing options...
conker87 Posted April 3, 2008 Share Posted April 3, 2008 http://www.phpfreaks.com/forums/index.php/topic,126354.0.html Link to comment https://forums.phpfreaks.com/topic/99341-connecting-to-database/#findComment-508287 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.