Jump to content

link.php?s1=word&s2=no.


almightyegg

Recommended Posts

i have a page like this:
[code=php:0]
<?
if(!$p){
}elseif($p=="view"){
//page info
}elseif($p=="edit"){
//page info
}
[/code]

so the link is profile.php?p=view or edit but in view i also have this:
[code=php:0]
$GET = id;
$first = "SELECT * FROM users WHERE id = '$GET'";
$second = mysql_query($first);
$profile = mysql_fetch_assoc($second);
//other stuff
echo "$profile[firstn] $profile[lastn]";
?>'s Profile
[/code]
so that is then profile.php?p=view&id=1 (is my id)
except is doesn't echo out the $profile bits  ??? any ideas
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.