All pastes #2082849 Raw Edit

Untitled

public php v1 · immutable
#2082849 ·published 2011-09-25 22:46 UTC
rendered paste body
<head><link rel="stylesheet" type="text/css" href="modules/avatar/css/xb.css"/></head><?php $db = mysql_connect('localhost', 'root', 'root'); mysql_select_db('db335a',$db); $sql = 'SELECT * FROM account'; $req = mysql_query($sql) or die('Erreur SQL !<br>'.$sql.'<br>'.mysql_error()); while($data = mysql_fetch_assoc($req)) ?><table class="avatar_cadre_main" cellpadding="0" cellspacing="0">	<tr>		<td>			<div style="width: 98%">				<img class="avatar_icon" src="modules/avatar/images/mail.png">&nbsp; 0&nbsp;&nbsp; &nbsp;				<img class="avatar_icon" src="modules/avatar/images/money_gold.gif">&nbsp;<?php echo $info["points"]; ?>&nbsp;&nbsp; &nbsp; Bienvenue <?php echo $info['username']; ?></div><br>			<div style="width: 98%">Ajouter des crédits &nbsp;&nbsp;| &nbsp;&nbsp;<a href="logout.php">Se Déconnecter</a></div>		</td>			<td class="avatar_cadre_photo">			<?php				$db = mysql_connect('localhost', 'root', 'root'); mysql_select_db('db335a',$db); 				$userg=mysql_query("SELECT img_nom FROM account") or die ("Failed to fetch your details." ) ; 					if (isset($_SESSION['id']))						{ echo "<img src=modules/avatar/images/user/".mysql_result($userg,0,"img_nom" )." class='avatar_photo';>" ; } 			?>			</td>	</tr></table><?php mysql_close(); ?>