No one has voted on any posts yet. Votes from other community members are used to determine a member's reputation amongst their peers.
Re:
I want to create a single login page for Admin and user.When admin lo it should go to seperate page and when user log it shoult go to seperate page.I want sample code for this.Thanks.. |
|
Re:
Hi, I have this code: <?PHP require ("connect.php"); //$db_handle = mysql_connect($server, $user_name, $password); =>$connect $db_found = mysql_select_db($_mysql_db, $connect); if ($db_found) { $SQL = "SELECT * FROM cheats"; $result = mysql_query($SQL); $i=0; while ($db_field = mysql_fetch_assoc($result)) { if($i%2===0) { $mesaj="<li><a href=\"{$db_field['Image']}\" class=\"pirobox\" title=\"{$db_field['Titlu']}\"><img src=\"{$db_field['Image']}\"/></a><p>{$db_field['Content']}</p><div class=\"button\"><pre><a href=\"#\">Read more</a> <a href=\"{$db_field['Download']}\">Download</a></pre></div></li>"; print ("$mesaj"); … |
|
How we can start session <?php session_start(); $user_check=$_SESSION['login_user']; if(!isset($user_check)) { header("Location: login.php"); } ?> |