Heres the code that id like to show as the profile pag when someone visits it... *
> <?php
> require_once('auth.php'); // only for registered users
> ?>
> <!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" />
> <title>TCK Portal | Profile</title>
> <style type="text/css">
> <!--
> body {
> font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
> background: #4E5869;
> margin: 0;
> padding: 0;
> color: #000;
> background-color: #FFF;
> }
>
>
> ul, ol, dl {
> padding: 0;
> margin: 0;
> }
> h1, h2, h3, h4, h5, h6, p {
> margin-top: 0;
> padding-right: 15px;
> padding-left: 15px;
> font-size: x-large;
> }
> a img {
> border: none;
> }
>
>
> a:link {
> color:#414958;
> text-decoration: underline;
> }
> a:visited {
> color: #4E5869;
> text-decoration: underline;
> }
> a:hover, a:active, a:focus {
> text-decoration: none;
> }
>
> .container {
> width: 80%;
> max-width: 1260px;
> min-width: 780px;
> background: #FFF;
> margin: 0 auto;
> }
>
>
> .header {
> background:#414958;
> }
>
> /* ~~ - ~~
>
> /
> .sidebar1 {
> float: left;
> width: 20%;
> background: #93A5C4;
> padding-bottom: 10px;
> }
> .content {
> padding: 10px 0;
> width: 80%;
> float: left;
> text-align: left;
> }
>
> / ~~ - ~~ /
> .content ul, .content ol {
> padding: 0 15px 15px 40px;
> }
>
> / ~~ - ~~ /
> ul.nav {
> list-style: none;
> border-top: 1px solid #666;
> margin-bottom: 15px;
> }
> ul.nav li {
> border-bottom: 1px solid #666;
> }
> ul.nav a, ul.nav a:visited {
> padding: 5px 5px 5px 15px;
> display: block;
> text-decoration: none;
> background: #414958;
> color: #000;
> }
> ul.nav a:hover, ul.nav a:active, ul.nav a:focus {
> background:#414958;
> color: #FFF;
> }
>
>
> .footer {
> padding: 10px 0;
> background:#414958;
> position: relative;
> clear: both;
> }
>
>
> .fltrt {
> float: right;
> margin-left: 8px;
> }
> .fltlft {
> float: left;
> margin-right: 8px;
> }
> .clearfloat {
> clear:both;
> height:0;
> font-size: 1px;
> line-height: 0px;
> }
> #apDiv1 {
> position:absolute;
> left:321px;
> top:162px;
> width:142px;
> height:89px;
> z-index:1;
> }
> #apDiv2 {
> position:absolute;
> left:368px;
> top:193px;
> width:146px;
> height:221px;
> z-index:1;
> }
> -->
> </style><!--[if lte IE 7]>
> <style>
> .content { margin-right: -1px; }
> ul.nav a { zoom: 1; }
> </style>
> <![endif]-->
> </head>
>
> <body>
> <div class="container">
> <div class="header"><a href="#" class="header"><img src="" alt="Insert Logo Here" name="Insert_logo" width="882" height="100" id="Insert_logo" style="background: #414958; display:block;" color:="color:" #414958;" /></a>
> <!-- end .header --></div>
> <div class="sidebar1">
> <ul class="nav">
> <li><a href="#">Who's Online?</a></li>
> <li><a href="#" title="Profile" target="_self">Profile</a></li>
> <li><a href="#">Search</a></li>
> <li><a href="#">Groups</a></li>
> <li><a href="logout.php" target="_self">Logout</a></li>
> </ul>
>
> <!-- end .sidebar1 --></div>
> <div class="content">
> ** ////////////////////////////// DISPLAY THE USER INFO HERE \\\\\\\\\\\\\\\\\\\\\\
> ////////////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\*
> </div>
>
> <div class="footer">
> <!-- end .footer --></div>
> <!-- end .container --></div>
> </body>
> </html>
>
>Inline Code Example Here
Pls help!!!!!
Dani 4,329 The Queen of DaniWeb Administrator Featured Poster Premium Member
Here's the code properly formatted:
<?php
require_once('auth.php'); // only for registered users
?>
<!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" />
<title>TCK Portal | Profile</title>
<style type="text/css">
<!--
body {
font: 100%/1.4 Verdana, Arial, Helvetica, sans-serif;
background: #4E5869;
margin: 0;
padding: 0;
color: #000;
background-color: #FFF;
}
ul, ol, dl {
padding: 0;
margin: 0;
}
h1, h2, h3, h4, h5, h6, p {
margin-top: 0;
padding-right: 15px;
padding-left: 15px;
font-size: x-large;
}
a img {
border: none;
}
a:link {
color:#414958;
text-decoration: underline;
}
a:visited {
color: #4E5869;
text-decoration: underline;
}
a:hover, a:active, a:focus {
text-decoration: none;
}
.container {
width: 80%;
max-width: 1260px;
min-width: 780px;
background: #FFF;
margin: 0 auto;
}
.header {
background:#414958;
}
/* ~~ - ~~
*/
.sidebar1 {
float: left;
width: 20%;
background: #93A5C4;
padding-bottom: 10px;
}
.content {
padding: 10px 0;
width: 80%;
float: left;
text-align: left;
}
/* ~~ - ~~ */
.content ul, .content ol {
padding: 0 15px 15px 40px;
}
/* ~~ - ~~ */
ul.nav {
list-style: none;
border-top: 1px solid #666;
margin-bottom: 15px;
}
ul.nav li {
border-bottom: 1px solid #666;
}
ul.nav a, ul.nav a:visited {
padding: 5px 5px 5px 15px;
display: block;
text-decoration: none;
background: #414958;
color: #000;
}
ul.nav a:hover, ul.nav a:active, ul.nav a:focus {
background:#414958;
color: #FFF;
}
.footer {
padding: 10px 0;
background:#414958;
position: relative;
clear: both;
}
.fltrt {
float: right;
margin-left: 8px;
}
.fltlft {
float: left;
margin-right: 8px;
}
.clearfloat {
clear:both;
height:0;
font-size: 1px;
line-height: 0px;
}
#apDiv1 {
position:absolute;
left:321px;
top:162px;
width:142px;
height:89px;
z-index:1;
}
#apDiv2 {
position:absolute;
left:368px;
top:193px;
width:146px;
height:221px;
z-index:1;
}
-->
</style><!--[if lte IE 7]>
<style>
.content { margin-right: -1px; }
ul.nav a { zoom: 1; }
</style>
<![endif]-->
</head>
<body>
<div class="container">
<div class="header"><a href="#" class="header"><img src="" alt="Insert Logo Here" name="Insert_logo" width="882" height="100" id="Insert_logo" style="background: #414958; display:block;" color:="color:" #414958;" /></a>
<!-- end .header --></div>
<div class="sidebar1">
<ul class="nav">
<li><a href="#">Who's Online?</a></li>
<li><a href="#" title="Profile" target="_self">Profile</a></li>
<li><a href="#">Search</a></li>
<li><a href="#">Groups</a></li>
<li><a href="logout.php" target="_self">Logout</a></li>
</ul>
<!-- end .sidebar1 --></div>
<div class="content">
** ////////////////////////////// DISPLAY THE USER INFO HERE \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\
////////////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\**
</div>
<div class="footer">
<!-- end .footer --></div>
<!-- end .container --></div>
</body>
</html>
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.