memberslist.php
Cita:
<?php
include "config.php";
mysql_connect($server, $db_user, $db_pass) or die (mysql_error());
$result = mysql_db_query($database, "select * from $table order by id desc") or die (mysql_error());
if (mysql_num_rows($result)) {
echo "Registered Members:";
while ($qry = mysql_fetch_array($result)) {
echo "<div class='listContainer'><img src='$qry[avatar]' width='150' height='150' alt='$qry[username]s Avatar' /><div class='listContainerTxt'><b></b>$qry[username]<b>Website:</b> <a href='$qry[website]' target='_blank'>$qry[website]</a></div></div></p></h6>";
}
}
?>
include "config.php";
mysql_connect($server, $db_user, $db_pass) or die (mysql_error());
$result = mysql_db_query($database, "select * from $table order by id desc") or die (mysql_error());
if (mysql_num_rows($result)) {
echo "Registered Members:";
while ($qry = mysql_fetch_array($result)) {
echo "<div class='listContainer'><img src='$qry[avatar]' width='150' height='150' alt='$qry[username]s Avatar' /><div class='listContainerTxt'><b></b>$qry[username]<b>Website:</b> <a href='$qry[website]' target='_blank'>$qry[website]</a></div></div></p></h6>";
}
}
?>
y aka el perfil.php
Cita:
<form action="update.php" method="post" >
<div id="foto">
<img src="<?php include "config.php"; mysql_connect($server, $db_user, $db_pass) or die (mysql_error()); $result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error()); while ($qry = mysql_fetch_array($result)) { echo "$qry[avatar]"; } ?>
" alt="Avatar" />
</div>
<?php
include "config.php";
mysql_connect($server, $db_user, $db_pass) or die (mysql_error());
$result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error());
while ($qry = mysql_fetch_array($result)) {
echo "$qry[username]";
}
?>
Email Adress:<?php
include "config.php";
mysql_connect($server, $db_user, $db_pass) or die (mysql_error());
$result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error());
while ($qry = mysql_fetch_array($result)) {
echo "$qry[email]";
}
?>
Website: <?php
include "config.php";
mysql_connect($server, $db_user, $db_pass) or die (mysql_error());
$result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error());
while ($qry = mysql_fetch_array($result)) {
echo "$qry[website]";
}
?>
<div id="foto">
<img src="<?php include "config.php"; mysql_connect($server, $db_user, $db_pass) or die (mysql_error()); $result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error()); while ($qry = mysql_fetch_array($result)) { echo "$qry[avatar]"; } ?>
" alt="Avatar" />
</div>
<?php
include "config.php";
mysql_connect($server, $db_user, $db_pass) or die (mysql_error());
$result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error());
while ($qry = mysql_fetch_array($result)) {
echo "$qry[username]";
}
?>
Email Adress:<?php
include "config.php";
mysql_connect($server, $db_user, $db_pass) or die (mysql_error());
$result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error());
while ($qry = mysql_fetch_array($result)) {
echo "$qry[email]";
}
?>
Website: <?php
include "config.php";
mysql_connect($server, $db_user, $db_pass) or die (mysql_error());
$result = mysql_db_query($database, "select * from $table WHERE username = '$username'") or die (mysql_error());
while ($qry = mysql_fetch_array($result)) {
echo "$qry[website]";
}
?>