Welcome, Guest.
Login
|
Register
Username:
Password:
Remember me:
I need help with a status
Please log in to post.
Watch thread
Unwatch thread
Started by
11Drago
28 Mar 2011 21:50
<<
<
By
11Drago
(
684
)
On 17 Apr 2011 22:30
I'm almost finished my status so nevermind.
...
By
Informatik
(
24
)
On 18 Apr 2011 01:33
First, you need this code as your profile page...
<?php
session_start();
$username = $_GET['username'];
$mysql_connect("server", "username", "password");
$mysql_select_db("dbname");
$sql = mysql_query("SELECT * from users WHERE username = '$username'");
$userinfo = mysql_fetch_array($sql);
?>
<HTML>
<HEAD>
<TITLE>Profile for <? echo $username; ?></TITLE>
<meta name="viewport" content="width=device-width" />
</HEAD>
<BODY>
<H1><? echo $username; ?></H1>
<H3><b>Name :</b><? echo $userinfo['name']; ?></H3>
...
</BODY>
</HTML>
</BODY>
In your DB, you gonna create a table called users that is contening the two following fields : username and name.
Linux professionnal
By
Spyfox72
(
297
)
On 18 Apr 2011 13:50
/locked
Resolved.
Hello, friends.
<<
<
Nintendo 3DS is ™ Nintendo Co. Ltd. This website is ©2009-2025 HullBreach Studios. All rights reserved.