Hello all thanks for reading hopefully this problem can be fixed i made this php mysql script for account registration and for some reason its not working
it keeps saying
"Fatal error: Call to undefined function mysql_connect() in C:\Pedregon's 2.4.3 Repack\Server2\htdocs\Insert.php on line 2"
Here is the code
Code:
<?php
$con = mysql_connect("localhost","root","lichking") or Die ('Could not connect: ' . mysql_error());
if ($con)
mysql_select_db("logon", $con);
$sql="INSERT INTO accounts (login,password,gm,email,flags)
VALUES
('login','password','0','email','8')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "1 record added";
($announce = "Account Creation Successfull!");
mysql_close($con);
?>
If some1 can point out what i did wrong and gave me a solution to my problem that would be great !!