Go Back   Computer Forums > Web Design | Website Development > Web Programming
Click Here to Login
Join Computer forums Today


Reply
 
Thread Tools Search this Thread Display Modes
 
Old 05-04-2006, 07:43 AM   #1
BSOD
 
localhost's Avatar
 
Join Date: Apr 2006
Posts: 72
Send a message via MSN to localhost
Default PHP Help, Profile pages?

I am making a site, but anyway I want to use a switch get thing for links, so it will be /members/?userid=$username

I want everywhere that the username is, to link there...I have a somewhat idea how, but it would have to be done by editting the index.php every new member there is...sorry if I can't explain it that well...here is my memberlist.php to give you a better idea of how it's set up:

Code:
<?php

include('../dbconnect.php');

print "<font face=verdana size=2><b><Center>Memberlist</center></b><br><Br><Br>
<b>Username - eMail - Instant Mess. - Join Date - Last Login</b><br>";
$query = "select * from `members` where `username` != 'guest' AND `username` != 'admin';";
$result = mysql_query($query) or die('Query failed: ' . mysql_error() . 'SQL error 1');
while ($row = mysql_fetch_array($result, MYSQL_ASSOC))
{
    $name = $row['username'];
	$email = $row['email'];
	$imess = $row['imess'];
	$date = $row['date'];
	$lastlogin = $row['lastlogin'];
	
	if ($row['lastlogin'] == '00000000') {
		$lastlogin = 'Never';
	}
	
    print "<p><a href=?userid=$name>$name</a> | $email | $imess | $date | $lastlogin</p>";
}
?>
__________________

localhost is offline   Reply With Quote
Old 05-04-2006, 11:46 AM   #2
BSOD
 
localhost's Avatar
 
Join Date: Apr 2006
Posts: 72
Send a message via MSN to localhost
Default Re: PHP Help, Profile pages?

Problem Solved.
localhost is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off



All times are GMT -5. The time now is 08:26 AM.


Powered by vBulletin® Version 3.8.8 Beta 4
Copyright ©2000 - 2017, vBulletin Solutions, Inc.
Search Engine Friendly URLs by vBSEO 3.6.0