/ Published in: PHP
URL: http://www.myworldness.com
None.
Expand |
Embed | Plain Text
//Variables you would need to change! $dbhost = 'localhost'; //Your Database Host! $dbuser = 'exdeeorg_mwn'; //Your Database Username! $dbpass = 'mwnalex'; //Your Database Password! $dbname = 'exdeeorg_mwn'; //Your Database Name! //END! DON'T EDIT ANYTHING BELOW THIS LINE IF YOU DON'T KNOW WHAT YOUR DOING!!! $connect = mysql_connect($dbhost,$dbuser,$dbpass) or die("Could not connect to database<br/><b>Error:</b>".mysql_error()); mysql_select_db($dbname,$connect) or die("Could not connect to database<br/><b>Error:</b>".mysql_error()); //Start Code if($_SESSION['logged_in'] != 1){ //Content For Logged Out User! ?> <center>Oh you seem to be logged out choose one of the options below!</center> <table width="500" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td><a href="usercp.php?login">Login</a></td> <td><div align="right"><a href="usercp.php?register">Register</a></div></td> </tr> </table> <? } else{ //Content for users Logged In! //Get User Deatails! //END! ?> Hey their <?=$userdata['username'];?>!<br/> (<a href="usercp.php?logout">Logout</a>) <? } ?>
You need to login to post a comment.
