Good evening,
I was hoping someone could help me with a server website setup. I am using Alterwow's vanilla, 1.12 mangos server, and im trying to setup a simple account creation page. I have php, and apache configured and working. I get the error
Fatal error: Call to undefined function mysql_connect() in
C:\wowserver\Server\htdocs\sql.php on line
3. If anyone is framiliar with this maybe they can help me get it resolved. I'm sure it is something simple. Many thanks for anything you can do. I'm sure some of you coders can probably figure out right off where my error is. I will post my code.
<html>
<body>
<form action="sql.php" method="post">
Username: <input type="text" name="username" />
Password: <input type="text" name="password" />
<input type="submit" />
</form>
</body>
</html>
____________________________________________________
sql.php code:
<?php
$con = mysql_connect("127.0.0.1","root","ascent");
mysql_select_db("realmd", $con);
$sha1pw = 'sha1($_POST[password])';
$sql="Account(username, sha_pass_hash)
VALUES
('$_POST[username]','$sha1pw')";
if (!mysql_query($sql,$con))
{
die('Error: ' . mysql_error());
}
echo "Account created sucessfully!!!!!";
mysql_close($con)
?>