- Joined
- Jun 27, 2009
- Messages
- 1,571
- Reaction score
- 170
Hello!
I need help with my PHP Code
I was figuring out why I can't visit other people home page! and I figured yeah me and stupid me... whatever learning
I'm using $_SESSION which means it will always redirects to my information because it's using my session.
I need help with my PHP Code
I was figuring out why I can't visit other people home page! and I figured yeah me and stupid me... whatever learning
I'm using $_SESSION which means it will always redirects to my information because it's using my session.
PHP:
<?php
$getUserInfo = mysql_query("SELECT * FROM `users` WHERE id = '".$_SESSION[user][id]."'");
while ($userInfo= mysql_fetch_assoc($getUserInfo))
{
echo '
<tbody>
<tr>
<td valign="middle" width="25">
<img style="margin-top: -10px;" src="http://www.habbo.com/habbo-imaging/avatarimage?figure=' .$userInfo['look'] . '&size=m&gesture=sml">
</td>
<td valign="top">
<p style="font-size: 90%;">Username: <strong>' .$userInfo['username'] . '</strong>
<br>Motto: <strong>' .$userInfo['motto'] . '</strong>
<br><i>Last Online: {lastSignedIn}</i></p>
<br/></td>
<td valign="top" style="float: right;">
' . (($userInfo['online'] == "1") ? '
<img src="../app/tpl/skins/Habbo/web-gallery/v2/images/habbo_online.gif"/>':'<img src="../app/tpl/skins/Habbo/web-gallery/v2/images/habbo_offline.gif"/>') . '
</td>
</tr>
</tbody>
</table>
<tbody>
<tr>
';
}
?>