I'm having a brain cramp today. I can't see what's wrong with the following connection code:
// Check to see if this it the orignal connection to the database
if (!isset($_SESSION['Local_Name']))
{
$conn = mysql_connect('localhost', 'langsyst_glenn', 'Zaq12wsX#');
// Select data base
$db_selected = mysql_select_db('langsyst', $conn);
if (!$db_selected)
{
die ('Can\'t use foo : ' . mysql_error());
}
$SqlString = "SELECT * FROM Default_Login WHERE NAME = 'glenn351' and PASSWORD = 'Zaq12wsX#'";
$Query = $SqlString;
$User_File = mysql_query($SqlString,$conn);
//Initialize session variables
$ROW=mysql_fetch_array($User_File, MYSQL_BOTH);
$_SESSION['Local_Name'] = $ROW["Local_Name"];
$_SESSION['Local_Password'] = $ROW["Local_Password"];
}
echo $_SESSION['Local_Name'];
echo "<br>";
echo $_SESSION['Local_Password'];
echo "<br><br>";
It keeps dieing on the "Foo" line.
Our community of experts have been thoroughly vetted for their expertise and industry experience.
The Most Valuable Expert award recognizes technology experts who passionately share their knowledge with the community, demonstrate the core values of this platform, and go the extra mile in all aspects of their contributions. This award is based off of nominations by EE users and experts. Multiple MVEs may be awarded each year.
This award recognizes an author who contributes the highest volume of original works or content. Recipients of this award produce extremely valuable content that prioritizes accuracy, relevancy, and professionalism.