PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
In login page required dropdown option it means admin can select username,password and select the admin from dropdown then go for home page. I have written php code but it is not workin pls sir help me.the code is
database name is----- planmyday
tablename is----------login
fields are-------------Id, Username, Password, Role
PMD01 abc abc Admin
PMD02 xyz xyz Member
Actully what I want when the admin will enter username, password and select admin then move for admin home page
second thing when he will select member then move for member home page .
Maybe check if the values contain any data, correct type of data.
The second question i don't understand though. Also this is beyond the scope of this post but the code is lacking basic escaping of data and using what seems to be plain text passwords in the database. Both are issues to look at once the script is working
“Don’t worry if it doesn’t work right. If everything did, you’d be out of a job.” - Mosher’s Law of Software Engineering