- Aayaam concluded sucessfully.
We acknowledge the efforts of all those who have made this event a big success.
// Use session variable on this page. This function must put on the top of page. session_start(); ////// Logout Section. Delete all session variable. session_destroy(); $message=""; ////// Login Section. $Login=$_POST['Login']; if($Login){ // If clicked on Login button. $teamname=$_POST['teamname']; $password=$_POST['password']; // Encrypt password with md5() function. // Connect database. $mysqlHOST="10.105.1.3";//bhim.cse.iitb.ac.in $mysqlDATABASE="aayaam"; $mysqlUSER="aayaam"; $mysqlPASSWORD="aayaam9664"; $conn=mysql_connect($mysqlHOST,$mysqlUSER,$mysqlPASSWORD); if (!$conn) { // die('Could not connect: ' . mysql_error()); } mysql_select_db($mysqlDATABASE,$conn);// or die( "Unable to select database"); //$conn = mysqlConnect(); // Check matching of username and password. $result=mysql_query("select * from team where teamname='$teamname' and password='$password'",$conn); if(mysql_num_rows($result)!='0'){ // If match. session_register("teamname"); // Create session teamname. header("location:main.php"); // Re-direct to main.php exit; }else{ // If not match. $message="Incorrect Team Name or Password "; } } // End Login authorize check. ?>
|
Mashup Upload login.Upload timing expired. Please mail us if you have any problems. |
||||||||||||
© 2007 CSE Department, IIT Bombay. |