Click here to Skip to main content
15,564,329 members
Home / Discussions / Linux, Apache, MySQL, PHP
   

Linux, Apache, MySQL, PHP

 
GeneralRe: PHP Member Pages... Need major help... Pin
Graham Breach23-Jan-10 0:31
Graham Breach23-Jan-10 0:31 
GeneralRe: PHP Member Pages... Need major help... [modified] Pin
thebiostyle23-Jan-10 5:33
thebiostyle23-Jan-10 5:33 
AnswerRe: PHP Member Pages... Need major help... Pin
Graham Breach23-Jan-10 6:20
Graham Breach23-Jan-10 6:20 
QuestionRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 9:51
thebiostyle23-Jan-10 9:51 
AnswerRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 10:33
fly90423-Jan-10 10:33 
NewsRe: PHP Member Pages... Need major help... [modified] Pin
thebiostyle23-Jan-10 10:51
thebiostyle23-Jan-10 10:51 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 11:38
fly90423-Jan-10 11:38 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 11:47
thebiostyle23-Jan-10 11:47 
Well, when I took out that line it showed as BG=black FC=red, but I don't know, maybe you can find the mistake... Here is the code for "profile.php":


<? 
include_once"CONFIGPAGE.php";

$fetch_users_data = mysql_fetch_object(mysql_query("SELECT * FROM `members` WHERE username='".$_REQUEST['username']."'"));

$fetch_users_id = mysql_fetch_object(mysql_query("SELECT * FROM `members` WHERE id='".$_GET['user']."'")); 

?>
<html>
<head>
	<title>Members - Profile - <? echo "".$fetch_users_data->username.""; ?> ~ Bio-Designs</title>
	
	<style type="text/css">
	<!--
	a {color: #000000; text-decoration: none;}a:link {color: #000000} a:visited {color: #000000} a:hover {color:#000000; width:7em} body{color: #FF0000} .dockmenu{ text-align: center; height: 50px; position: relative;}a.dockItem { text-align: center; color: #000;font-weight: bold; text-decoration: none; width: 50px; position: absolute; display: block; bottom: 0;}.dockItem img { border: none; margin: 0 auto 5px auto; width: 75%;}.dockItem span { display: none; positon: absolute;}.dockmenuContainer { height: 50px; left: 76px; position: absolute; top: 40px;}font {color: FF0000;}<!--BODY { scrollbar-arrow-color:#000000; scrollbar-track-color:#000000; scrollbar-shadow-color:#000000; scrollbar-face-color:#FF0000; scrollbar-highlight-color:#FF0000; scrollbar-darkshadow-color:#000000; scrollbar-3dlight-color:#FF0000; } table, td, th{border:0px 1px 0px 1px dashed #FF0000; padding:2px 2px 2px 2px;} td.alt {font-size:14pt; color: #000000;} tr.alt { background-color: #FF0000; color: #000000; border: 1px dotted red;} 
//-->
	</style>
	
<link rel="icon" type="image/gif" href="http://i248.photobucket.com/albums/gg195/Bio-Gfx/thebiostylefavicon.gif">
</head>
<body bgcolor="#000000" onload="$_GET['user']">
<br />
	
	<div>
		<div style="text-align: center;">
		<img src="http://www.thebiostyle.com/biologoblackv1.0.png" /><br /><br />
<div align="center">
<span style=\"font-size: 24pt; color: rgb(255, 0, 0);\"><font size=\"20pt\" color=\"#FF0000\"><u><b>Profile</b></u></font></span><br /><br />
<table cellspacing="4" cellpadding="4" style=" border:1px dotted red;">
<?
$list_memberinfo = mysql_query("SELECT * FROM `members` WHERE id='".$_GET['user']."'");
while($list = mysql_fetch_array( $list_memberinfo ))
{
Print '<tr class=\"alt\"><td class=\"alt\" bgcolor=\"#FF0000\" color=\"#000000\" colspan=\"2\"><span style=\"font-size: 16pt; color: rgb(0, 0, 0); background-color: black;\"><center><b><u>Information</u></b></center></span></td><td bgcolor=\"#000000\" colspan=\"2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td class=\"alt\" bgcolor=\"#FF0000\" color=\"#000000\" colspan=\"2\"><span style=\"font-size: 16pt; color: rgb(0, 0, 0); background-color: black;\"><center><b><u>General</u></b></center></span></td></tr><tr class=\"alt\"><td bgcolor=\"#FF0000\" color=\"#000000\"><center><b><u>Username</u></b></center></td><td bgcolor=\"#FF0000\" color=\"#000000\"><b>';
Print "".$list['username']."</b></td><td bgcolor=\"#000000\" colspan=\"2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td class=\"alt\" bgcolor=\"#FF0000\" color=\"#000000\"><span style=\"font-size: 14pt; color: rgb(0, 0, 0);\"><center><b><u>Email</u></b></center></span></td><td class=\"alt\" bgcolor=\"#FF0000\" color=\"#000000\"><a href='mailto:".$list['email']."'>Send Message</a></td></tr><tr class=\"alt\"><td class=\"alt\"><span style=\"font-size: 14pt; color: rgb(0, 0, 0);\"><center><b><u>Member Title</u></b></center></span></td><td><b>
".$list['title']."</b></td><td bgcolor=\"#000000\" colspan=\"2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td class=\"alt\"><span style=\"font-size: 14pt; color: rgb(0, 0, 0);\"><center><b><u>Country</u></b></center></span></td><td>".$list['country']."</td></tr><tr class=\"alt\"><td class=\"alt\"><span style=\"font-size: 14pt; color: rgb(0, 0, 0);\"><center><b><u>Company</u></b></center></span></td><td><b>
".$list['company']."</b></td><td bgcolor=\"#000000\" colspan=\"2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td class=\"alt\"><span style=\"font-size: 14pt; color: rgb(0, 0, 0);\"><center><b><u>Website</u></b></center></span></td><td>".$list['www']."</td></tr><tr class=\"alt\"><td class=\"alt\"><span style=\"font-size: 14pt; color: rgb(0, 0, 0);\"><center><b><u>Joined On:  </u></b></center></span></td><td><b>
".$list['date']."</b></td><td bgcolor=\"#000000\" colspan=\"2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td class=\"alt\"><span style=\"font-size: 14pt; color: rgb(0, 0, 0);\"><center><b><u>Browser</u></b></center></span></td><td>".$list['browser']."</td></tr><tr bgcolor=\"#000000\"></tr><tr bgcolor=\"#000000\"></tr><tr bgcolor=\"#000000\"></tr><tr bgcolor=\"#000000\"></tr><tr bgcolor=\"#000000\"></tr><tr bgcolor=\"#000000\"></tr><tr bgcolor=\"#000000\"></tr><tr bgcolor=\"#000000\"></tr><tr bgcolor=\"#000000\"></tr><tr bgcolor=\"#000000\"></tr><tr class=\"alt\"><td class=\"alt\" colspan=\"2\"><span style=\"font-size: 16pt; color: rgb(0, 0, 0);\"><center><b><u>About</u></b></center></span></td><td bgcolor=\"#000000\" colspan=\"2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td class=\"alt\" colspan=\"2\"><span style=\"font-size: 16pt; color: rgb(0, 0, 0);\"><center><b><u>Intrests</u></b></center></span></td></tr><tr class=\"alt\"><td colspan=\"2\" height=\"100px\" valign=\"top\"><b>
".$list['about']."</b></td><td bgcolor=\"#000000\" colspan=\"2\">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td><td colspan=\"2\" height=\"100px\" valign=\"top\">".$list['intrests']."</td></tr>";
}
?>
</div>
</table>
<br /><br />
<span style="color: rgb(255, 0, 0);">| 2009-<script type="text/javascript">

var d = new Date();
document.write(d.getFullYear());

</script> Bio-Designs |</span><br style="color: rgb(255, 0, 0);" />
					
					<br />
</body>
</html>


Here is the code from the "memberlist page" that is being passed to the profile page...:

<?
$list_members = mysql_query("SELECT * FROM `members` ORDER BY id");
$list = mysql_fetch_array( $list_members ); 
while($list = mysql_fetch_array( $list_members ))
{
Print '<tr class="alt"><td><b>';
Print "<form action='profile.php' method='GET'>".$list['username']."<input type='hidden' name='username' value='".$list['username']."' /></b></td><td><input type='hidden' name='user' value='".$list['id']."' /><input type='submit' value='Visit' class='submit'/></form></td><td>".$list['country']."</td><td>".$list['browser']."</td></tr>";
}
?>



THANKS for all your help.
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 12:00
fly90423-Jan-10 12:00 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 12:18
thebiostyle23-Jan-10 12:18 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 12:29
fly90423-Jan-10 12:29 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 12:23
fly90423-Jan-10 12:23 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 12:48
thebiostyle23-Jan-10 12:48 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle24-Jan-10 8:07
thebiostyle24-Jan-10 8:07 
AnswerRe: PHP Member Pages... Need major help... Pin
Graham Breach24-Jan-10 8:57
Graham Breach24-Jan-10 8:57 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle24-Jan-10 9:34
thebiostyle24-Jan-10 9:34 
QuestionAdd two difference items to shopping card-Paypal Pin
tktuan28-Dec-09 17:08
tktuan28-Dec-09 17:08 
AnswerRe: Add two difference items to shopping card-Paypal Pin
cjoki29-Dec-09 5:40
cjoki29-Dec-09 5:40 
GeneralRe: Add two difference items to shopping card-Paypal Pin
tktuan29-Dec-09 16:05
tktuan29-Dec-09 16:05 
GeneralRe: Add two difference items to shopping card-Paypal Pin
cjoki30-Dec-09 5:42
cjoki30-Dec-09 5:42 
GeneralRe: Add two difference items to shopping card-Paypal [modified] Pin
tktuan30-Dec-09 16:20
tktuan30-Dec-09 16:20 
AnswerRe: Add two difference items to shopping card-Paypal Pin
vorotnik27-Jan-10 7:58
vorotnik27-Jan-10 7:58 
QuestionPython in Corpus Analysis Pin
ahmedshamim24-Dec-09 15:29
ahmedshamim24-Dec-09 15:29 
QuestionRadio Buttons Pin
thebiostyle24-Dec-09 9:56
thebiostyle24-Dec-09 9:56 
AnswerRe: Radio Buttons Pin
abushahin28-Dec-09 8:47
abushahin28-Dec-09 8:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.