i have a php login page and a database in mysql how do i connect the two?
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
// some code
?>
is what i tried but it just showed up on the screen as just text and didnt connect
<?php
$con = mysql_connect("localhost","peter","abc123");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
// some code
?>
is what i tried but it just showed up on the screen as just text and didnt connect