Hello, first post here. Not really much time for a proper introduction, I'm in a bit of a jam and I'm way behind on building my site's control panel.
The error I get is:
Parse error: syntax error, unexpected T_VARIABLE in /home2/thedevho/public_html/settings.php on line 5
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'thedevho_content'@'localhost' (using password: YES) in /home2/thedevho/public_html/users/message.php on line 5
Access denied for user 'thedevho_content'@'localhost' (using password: YES)
Not like I haven't seen the first error before, I'm rather hasty about my coding. It's the second one that has me stumped.
Now here's my code, I know it's a wreck and an organizational nightmare and I apologize for it.
<?php
require_once "http://www.thedevhome.net/settings.php";
mysql_connect("localhost", "thedevho_content", "xxxxxxxx") or die(mysql_error());
mysql_select_db("thedevho_content") or die(mysql_error());
$get['name'] = $_GET['name'];
$get['password'] = $_GET['password'];
$login = mysql_query("SELECT * FROM users
WHERE user_name=".$get['name']) or die(mysql_error());
if ( $login['pwd'] == $get['password'] ) {
echo "Login Successful.";
} else {
?>
Login unsuccessful. If you do not have an account, you may <a href='http://www.thedevhome.net/users/register.php'>register</a>.
<?php
}
?>
</center>
</body>
</html>
I guarantee you, the password I had was right. I have no idea why I'm getting this error and the moment I'm set straight this project will be blown wide open for me and I'll be able to make major headway. Thanks in advance for any help!