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

Linux, Apache, MySQL, PHP

 
GeneralRe: imap_search problem Pin
Mari Jenkins9-Feb-10 4:14
Mari Jenkins9-Feb-10 4:14 
QuestionSwitching to Linux OS Pin
Vaclav_11-Jan-10 7:51
Vaclav_11-Jan-10 7:51 
AnswerRe: Switching to Linux OS Pin
LloydA11114-Jan-10 8:48
LloydA11114-Jan-10 8:48 
QuestionMail () function friving me crazy with the errors :@ Pin
SRJ9210-Jan-10 5:51
SRJ9210-Jan-10 5:51 
AnswerRe: Mail () function friving me crazy with the errors :@ Pin
Adam Maras10-Jan-10 8:36
Adam Maras10-Jan-10 8:36 
GeneralRe: Mail () function friving me crazy with the errors :@ Pin
SRJ9210-Jan-10 8:40
SRJ9210-Jan-10 8:40 
GeneralRe: Mail () function friving me crazy with the errors :@ Pin
fly90410-Jan-10 11:29
fly90410-Jan-10 11:29 
GeneralRe: Mail () function friving me crazy with the errors :@ Pin
SRJ9210-Jan-10 11:41
SRJ9210-Jan-10 11:41 
QuestionProblem with Arrays in PHP Pin
sarang_k5-Jan-10 22:30
sarang_k5-Jan-10 22:30 
AnswerRe: Problem with Arrays in PHP Pin
cjoki7-Jan-10 5:35
cjoki7-Jan-10 5:35 
GeneralRe: Problem with Arrays in PHP Pin
David192216-Jan-10 12:31
David192216-Jan-10 12:31 
GeneralRe: Problem with Arrays in PHP Pin
fly90416-Jan-10 13:15
fly90416-Jan-10 13:15 
QuestionProblem with check boxes Pin
sarang_k5-Jan-10 19:57
sarang_k5-Jan-10 19:57 
AnswerRe: Problem with check boxes Pin
cjoki7-Jan-10 5:25
cjoki7-Jan-10 5:25 
QuestionPHP Member Pages... Need major help... Pin
thebiostyle1-Jan-10 7:46
thebiostyle1-Jan-10 7:46 
AnswerRe: PHP Member Pages... Need major help... Pin
Smithers-Jones1-Jan-10 11:09
Smithers-Jones1-Jan-10 11:09 
AnswerRe: PHP Member Pages... Need major help... [modified] Pin
enhzflep1-Jan-10 11:25
enhzflep1-Jan-10 11:25 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle1-Jan-10 16:14
thebiostyle1-Jan-10 16:14 
GeneralRe: PHP Member Pages... Need major help... Pin
enhzflep3-Jan-10 15:54
enhzflep3-Jan-10 15:54 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle3-Jan-10 16:28
thebiostyle3-Jan-10 16:28 
GeneralRe: PHP Member Pages... Need major help... Pin
enhzflep4-Jan-10 12:22
enhzflep4-Jan-10 12:22 
GeneralRe: PHP Member Pages... Need major help... Pin
thebiostyle22-Jan-10 16:09
thebiostyle22-Jan-10 16:09 
Okay... I've seemed to have used some common sense in putting this together... Now all I need is some help to finish it. The "memberlist" page shows fine... it's just the "profile" page... Here is the code for the part of the "memberlist" that will be used with the "profile" page... I want to know if I've done it practically right...

<?
$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><a href='".$list['www']."'>".$list['www']."</a></td><td>".$list['browser']."</td></tr>";
}
?>


That is what I use to print out the table of members...


And here is the complete php for the "profile.php" page:

<? 
include_once"config.php";

$fetch_users_data = mysql_fetch_object(mysql_query("SELECT * FROM `members` WHERE username='".$_GET['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;} 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);"><u><b>Profile</b></u></span><br /><br />
<table cellspacing="4" cellpadding="4" style=" border:1px dotted red;">
<tr class="alt" style=" border:1px dashed red;">
<td><span style="font-size: 14pt; color: rgb(0, 0, 0);"><center><b><u>Username</u></b></center></span></td>
<td><span style="font-size: 14pt; color: rgb(0, 0, 0);"><center><b><u>Country</u></b></center></span></td>
<td><span style="font-size: 14pt; color: rgb(0, 0, 0);"><center><b><u>WWW</u></b></center></span></td>
<td><span style="font-size: 14pt; color: rgb(0, 0, 0);"><center><b><u>Browser</u></b></center></span></td></tr>
<?
$list_memberinfo = mysql_query("SELECT * FROM `members` WHERE id='".$_GET['user']."'");
$list = mysql_fetch_array( $list_memberinfo ); 
while($list = mysql_fetch_array( $list_memberinfo ))
{
Print '<tr class="alt"><td><b>';
Print "".$list['username']."</b></td><td>".$list['country']."</td><td><a href='".$list['www']."'>".$list['www']."</a></td><td>".$list['browser']."</td></tr><tr><td><span style="font-size: 14pt; color: rgb(0, 0, 0);"><left><b><u>About</u></b></left></span></td></tr><tr><td>".$list['about']."</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>


It says this when I try to run the page... "
Parse error: syntax error, unexpected T_STRING in profile.php on line 42
"

Should the form method have been "POST"...? Please fix my errors for me... Thanks I tried my best.
GeneralRe: PHP Member Pages... Need major help... Pin
Graham Breach22-Jan-10 23:31
Graham Breach22-Jan-10 23:31 
GeneralRe: PHP Member Pages... Need major help... [modified] Pin
thebiostyle23-Jan-10 4:33
thebiostyle23-Jan-10 4:33 
AnswerRe: PHP Member Pages... Need major help... Pin
Graham Breach23-Jan-10 5:20
Graham Breach23-Jan-10 5:20 

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.