Peter Chan
asked on
Problem to echo
Hi,
I get
due to
what to adjust?
I get
Parse error: syntax error, unexpected T_IF, expecting ',' or ';' in D:\edi\Zim_GlobalDA\adm\login_menu.p hp on line 14
due to
echo "'$username'"
what to adjust?
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Please leave the comments in above (which is confusing).
There is a record matching to values of $username and $passwd but I do not know why it does get into 'else' part in above.
There is a record matching to values of $username and $passwd but I do not know why it does get into 'else' part in above.
Is your password stored in the DB as plain text?
If yes, it must be something else (but it's extremely dangerous) and we need to see other part of your code.
If not, your sql won't return any row, and the result of login() will be 0 (or false).
If yes, it must be something else (but it's extremely dangerous) and we need to see other part of your code.
If not, your sql won't return any row, and the result of login() will be 0 (or false).
Thanks for accepting my answer. Not sure why you dropped the grade to a B on the solution though...
ASKER
Sorry, I see there are correct values inside $username and $passwd but it does get into 'else' part below. What can be the reason?
Open in new window