everyone keeps using the same incorrect syntax. you all keep using:
password('password')
and I keep saying change it to:
$password('password')
Here is the correct syntax to use for your php code:
<?php
$sql = "SELECT * FROM user WHERE name = " . $userName . " AND pwd = " . $password('password') . "";
$result = mysql_query($sql);
?>
Post Edited (06-07-06 13:25)
CyberSpatium----------------------WAMP Forum Admin
Web Development for Newbie's Blog - Check out my new blog. It is for web developers, and especially tailored for the web development newbie. If you are not fluent in “geek speak”, then this incredible resource is just you. And even if you are a web development pro, this is a great resource to check out some of the latest web development tips, news, tutorials, codes and more.