how to get table data in my login page

I have a admin table in my database, in this table username, password ,student records included
how to get student records in login page
my code is in Attachment
i am new in php coding

                                   please help me,
                                                               Thanks in Advance,

mycode.txt (2.77 KB)

You are using deprecated code (obsolete). You need to use PDO or Mysqli. You can download a complete working PDO database here:

http://www.phphelp.com/forum/the-occasional-tutorial/beginners-pdo-bumpstart-code-use-it-now!

Sponsor our Newsletter | Privacy Policy | Terms of Service