![]() |
|
#1
|
|||
|
|||
php mysql loginhow do i check the username and password that on the database? Currently, i only have one static username and password. How can do if aaa username password is matach on database it will bring the user to "ab.php" page, if ccc usernane and password is ddd is match from database go to "cd.php page" i know i can use switch case but i have hundred of different used base on their accesslevel.
PHP Code:
<form name="form1" action="<?php echo $_SERVER['PHP_SELF']; ?>" method="post"> USERNAME: <input type="text" name="user" value="" /> PASSWORD: <input type="password" name="pass" value="" /> input type="button" value="Login" onclick="return frmLogin();"/> <div id="erro_msg"> <?php echo isset($login_msg)? $login_msg : ''; ?></div> </form>[/php] Last edited by LuciWiz : 26-Sep-2006 at 04:53.
Reason: Please insert your Php code between [php] & [/php] tags
|
|||
|
#2
|
|||
|
|||
Re: php mysql loginThe password and username are usually in the site itself. Just go look for a file named sql.php or mysql.php and the information is in the file.
|
Recent GIDBlog
Problems with the Navy (Officers) by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Cpanel downgrade MYSQL 4.1.X to MySQL 4.0.xx | Webhosting-live | Web Hosting Forum | 1 | 01-Sep-2006 02:54 |
| php and mysql | vladimy | MySQL / PHP Forum | 2 | 28-May-2005 05:17 |
| PHP, MySQL, WML | skyloon | MySQL / PHP Forum | 0 | 05-Mar-2004 07:53 |
| [script] Password Protect web pages/site using PHP and MySQL | JdS | PHP Code Library | 0 | 23-Jul-2003 10:02 |
| Windows: From only £20p/y,Linux: from $10p/m. ASP, ASP.NET, PHP, Free MySQL, +More | EyotaHosts | Web Hosting Advertisements & Offers | 0 | 28-Jun-2003 13:54 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The