Jump to content

[SOLVED] Need help getting an id for a profile or whatever, help please!


Recommended Posts

Okay look, you can even try yourself...

http://www.smashandtaxes.mildrum.net/register.php

then

http://www.smashandtaxes.mildrum.net/login.php

 

Now when you try to go to look at your profile it says no user specify because for some reason I can't get the ID of the person you're trying to find.

 

$sql = "SELECT * FROM user
WHERE user.id='$_GET[id];'";
$result = mysql_query($sql);
$result2 = mysql_fetch_assoc($result);
$user = $result2[username];
$email = $result2[email];
$desc = $result2[profile];
$desc2 = $result2[history];
$tag = $result2[tag];
$call = $row['id'];
?>
<?
if($_COOKIE[auth] == yes){
?>
<?
if($_GET[id] == false){
echo "No user specify";
}else {
?>
<?php
echo"<h3>$user // Tag: $tag</h3><br>";
echo"$desc";
echo"<br><br>";
echo"<h3>History</h3>";
echo"$desc2";
echo"<br><br>";
echo"<h3>Personal Videos</h3>";
echo"$desc3";
}
}
?>

 

I did the database connection already...I just don't see what I need to do...help

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.