ManInBlack Posted September 26, 2009 Share Posted September 26, 2009 Hi! I'm try make like index.php/?view=profile When I'm Login will come up my profile info. Truly bad coded maybe... Can someone help me ? plz. This is a file some I'm include-ing too index.php when I click on the View Profile link. But nothing happens. Just black. sorry my english, if deffrent understand what I mean <?php if(session_is_registered($_SESSION['email'])) { if(isset($_SESSION['email'])){ $username = $_SESSION['email']; $result = mysql_query("SELECT * FROM users WHERE email='$username'"); while($row = mysql_fetch_array($result)) { $profileimage = $row['profileimage']; $firstname = $row['firstname']; $lastname = $row['lastname'];} ?> <table class="body" width="900" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="3" scope="col"><div class="titlehead">123<?php echo $firstname; ?></div></td> </tr> <tr> <td width="200" scope="col"><div class="profileimage"> <p>profile mynd</p> <p> </p> </div></td> <td width="530" scope="col">info</td> <td width="170" scope="col">Augl</td> </tr> </table> <?php } }?> This is my Layout.. <?php error_reporting(E_ALL);?> <?php session_start(); ?> <?php include('sql.php'); ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <link href="_css/main.css" rel="stylesheet" type="text/css" /> <title>myLife</title> </head> <body> <div class="frame"> <div class="head"><a href="http://000.is/index.php"><a href="http://000.is/index.php"><a href="http://000.is/index.php"></a><a href="http://000.is/index.php"><img src="_images/mylife.png" width="900" height="115" border="0" /></a> </div> <div class="Mainmenu"> <ul id="mainmenu" class="menu"> <!-- Valmynd --> <li class="ParentItemHover"><a href='home.php'>Home</a> </li> <!-- Profile --> <li class="ParentItemHover"><a href='index.php?user=anton'>My Profile</a> <ul> <li class='SubItemsContainer'><a href="index.php?user=anton">View My Profile</a></li> <li class='SubItemsContainer'><a href="index.php?user=anton">Edit My Profile</a></li> <li class='SubItemsContainer'><a href="index.php?user=anton">View My Profile</a></li></ul> </li> <!-- Blogg --> <li class="ParentItemHover"><a href='index.php?user=anton'>My Blog</a> <ul> <li class='SubItemsContainer'><a href="index.php?user=anton">My Blog</a></li> <li class='SubItemsContainer'><a href="index.php?user=anton">Write Blog</a></li> <li class='SubItemsContainer'><a href="index.php?user=anton">Comments</a></li> <li class='SubItemsContainer'><a href="index.php?user=anton">Catgories</a></li> <li class='SubItemsContainer'><a href="index.php?user=anton">Old Blogs</a></li></ul> </li> <!-- My Photos --> <li class="ParentItemHover"><a href='index.php?user=anton'>My Photos</a> <ul> <li class='SubItemsContainer'><a href="index.php?user=anton">My Photos</a></li> <li class='SubItemsContainer'><a href="index.php?user=anton">Add New Photos</a></li> <li class='SubItemsContainer'><a href="index.php?user=anton">Add Album</a></li> <li class='SubItemsContainer'><a href="index.php?user=anton">Comments</a></li> </ul> </li> <!-- Friends --> <li class="ParentItemHover"><a href='home.php?view=friends'>Friends</a> <ul> <li class='SubItemsContainer'><a href="home.php?view=friends">My Friends </a></li> <li class='SubItemsContainer'><a href="home.php?view=find-freinds">Find New Freinds</a></li> <li class='SubItemsContainer'><a href="home.php?view=invite-friends">Tell A Friends</a></li> </ul> </li> <!-- Messages --> <li class="ParentItemHover"><a href='home.php?view=inbox'>Messages</a> <ul> <li class='SubItemsContainer'><a href="home.php?view=indox">Inbox</a></li> <li class='SubItemsContainer'><a href="home.php?view=write">Send New Message</a></li> <li class='SubItemsContainer'><a href="home.php?view=sent">Sent Messages</a></li></ul> </li> </ul> </div> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td colspan="4" scope="col"> <div class="pages"> <?php include("_include/viewprofile.php"); ?> </div> <br /> <form id="form1" name="form1" method="post" action="login.php?action=login"> <label> <input type="text" name="email" id="email" /> <input type="password" name="password" id="password" /> <input type="submit" name="button" id="button" value="Login" /> </label> </form> </td> </tr> </table> </div> </body> </html> Link to comment https://forums.phpfreaks.com/topic/175618-helping-with-see-my-profile-include/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.