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

Linux, Apache, MySQL, PHP

 
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 
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 
QuestionRe: PHP Member Pages... Need major help... Pin
thebiostyle23-Jan-10 8:51
thebiostyle23-Jan-10 8:51 
Okay thanks... I guess the first part was just a stupid mistake... even though it worked in the "memberlist" file..... But thanks, it now works. The "Edit Profile" page should include... Such like:

mysql_query("UPDATE `DBNAME`.`TABLE` SET VARIABLE = '$_POST[VARIABLE]'
WHERE username = '$SINGEDINUSERNAME' AND password = '$DIGNEDINUSER'SPASSWORD'");



I believe, and then it would be edited to where the user can edit multiple profile fields of which would be displayed on their profile!! Thanks so much for your help.

Also, how would I be able to make the "Profile" page not include the "username=" in the url...


Also, I tried adding more profile fields to make it seem as though there was 4 tables, when there is actually 1... I tried making it print it all out, now I need help to get it fixed...

here is the code:

<? 
include_once"config.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"><span style=\"font-size: 14pt; color: rgb(0, 0, 0);\"><center><b><u>Username</u></b></center></span></td><td><b>';
Print "".$list['username']."</b></td><td bgcolor=\"#000000\" colspan=\"2\"></td><td class=\"alt\"><td class="alt"><span style=\"font-size: 14pt; color: rgb(0, 0, 0);\"><center><b><u>Email</u></b></center></span></td><td><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\"></td><td class=\"alt\"><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\"></td><td class=\"alt\"><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\"></td><td class=\"alt\"><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><br /><br /><br /><tr class="alt"><td class="alt"><span style=\"font-size: 14pt; color: rgb(0, 0, 0);\"><center><b><u>About</u></b></center></span></td><td><b>
".$list['about']."</b></td><td bgcolor=\"#000000\" colspan=\"2\"></td><td class=\"alt\"><td class="alt"><span style=\"font-size: 14pt; color: rgb(0, 0, 0);\"><center><b><u>Intrests</u></b></center></span></td><td>".$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 error message:

"Parse error: syntax error, unexpected T_STRING in profile.php on line 35"



Also, here is a link to an image of what I would like it to look like, so you can get a better image of what I was going for...

http://i248.photobucket.com/albums/gg195/Bio-Gfx/profilelayout.png

That should give you everything that I want to be displayed on the profile page... THANKS!!
AnswerRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 9:33
fly90423-Jan-10 9:33 
NewsRe: PHP Member Pages... Need major help... [modified] Pin
thebiostyle23-Jan-10 9:51
thebiostyle23-Jan-10 9:51 
GeneralRe: PHP Member Pages... Need major help... Pin
fly90423-Jan-10 10:38
fly90423-Jan-10 10:38 

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.