// Replace the variable values below // with your specific database information. #$host = "www.cazri.res.in"; $host = "localhost"; $user = "root"; #$pass = "AKMU!1008@567.098"; #$pass = "ram!1008"; $pass = "Ram@1008!"; $db = "registration"; // This part sets up the connection to the // database (so you don't need to reopen the connection // again on the same page). $ms = mysql_pconnect($host, $user, $pass); if ( !$ms ) { echo "Error connecting to database.\n"; } // Then you need to make sure the database you want // is selected. mysql_select_db($db,$ms); ?>