but I get parse error
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in c:\program files\easyphp1-8\www\test\home.php on line 25
Code: Select all
<html>
<body>
<head>
<style type="text/css">
body
{
background-image:
url('SilverBG.jpg')
}
</style>
</head>
<img src="Mythic Aeons Banner.jpg" width="1009" height="125">
<form action="Youhavebeene-mailed.php" method="post">
<?php
$con = mysql_connect("localhost","Mythic Fr0st","null");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("users", $con);
$result = mysql_query("SELECT * FROM users
WHERE username=$_POST['login']");
while($row = mysql_fetch_array($result))
{
echo $row['username'] . " " . $row['email'];
echo "<br />";
}
?>
</body>
</html>(username and email, are lists in my table 'users' and my database name is also 'users')
the errored line is WHERE username=$_POST['login']");