Killer1390
-
Posts
6 -
Joined
-
Last visited
Never
Posts posted by Killer1390
-
-
I believe the problem is this line:
$update=mysql_query("UPDATE table SET cat_num=$upoin");
Php has a weird quote system and whatnot. This should fix it:
$update=mysql_query("UPDATE table SET cat_num='$upoin'");
I think it should anyways, I am new to this. Just look at the end of the line of code to see what I did.
-
Lol, oh. Thanks .
-
Thanks dude .
Why is $_REQUEST taboo?
I am guessing it takes more processing time than $_GET or $_POST.
-
Thanks man, it worked.
-
Well, basically I am making my log in script. This is my first website with php and MySQL... actually, its my first website I have done that isn't for a school project.
Anywho, the problem I am having is I can't seem to verify the password of the account I am trying to log into.
Here is the code snippet I am having trouble with:
$usr = $_REQUEST['Username']; $pass = $_REQUEST['Password']; $pass = md5($pass); if(mysql_query('SELECT Password FROM Accounts WHERE Username = "' .$usr . '"') == $pass) { session_start(); $_SESSION['loggedin'] = yes; $_SESSION['User'] = $usr; $_POST['info'] = ("You have successfully logged in " . $usr . "."); } else { $_POST['info'] = "Username and password do not match.";}
The problem is that it doesn't seem to matter if the username and password are correct, it always prints "Username and password do not match.".
So, here is the table layout of 'Accounts':
Did I type the mysql query wrong?
A design in the making
in Website Critique
Posted
Agreed. Although you don't have to make it too much darker.
The website looks pretty professional and from what I can see, it looks like it would be easy to navigate, which is always good.