Advertisement
Guest User

exibir.php

a guest
May 24th, 2012
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.63 KB | None | 0 0
  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <?php
  5.  
  6. $conexao = mysql_connect('localhost', 'root', '3630207')
  7. or die('Erro ao conectar com o bando de dados!');
  8. $db = mysql_select_db('informacoes')
  9. or die('Erro ao selecionar o banco de dados!');
  10.  
  11. ?>
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  13. <title>Exibir dados</title>
  14. </head>
  15.  
  16. <body>
  17.  
  18. <?php
  19.  
  20. $usuario = $_GET['usuario'];
  21. $seleciona = mysql_query("SELECT * FROM informacoes WHERE usuario = '$usuario'");
  22.  
  23. if($seleciona == ''){
  24. echo 'Erro ao selecionar usuario!';
  25. }else{
  26. while($res_usuario = mysql_fetch_array($seleciona))
  27. {
  28.  
  29. $usuario = $res_usuario['usuario'];
  30. $senha = $res_usuario['senha'];
  31. $score = $res_usuario['score'];
  32. $dinheiro = $res_usuario['dinheiro'];
  33. $avisos = $res_usuario['avisos'];
  34. $nivel = $res_usuario['nivel'];
  35. $vip = $res_usuario['vip'];
  36. $skin = $res_usuario['skin'];
  37. $admin = $res_usuario['admin'];
  38.  
  39. echo '<h1>'.$usuario.'</h1>';
  40. echo '<h4>'.Senha.' '.é.' '.$senha.'</h4>';
  41. echo '<h4>'.Score.' '.é.' '.$score.'</h4>';
  42. echo '<h4>'.Dinheiro.' '.é.' '.$dinheiro.'</h4>';
  43. echo '<h4>'.Avisos.' '.é.' '.$avisos.' '.de.' '. três.'</h4>';
  44. echo '<h4>'.Nivel.' '.é.' '.$nivel.'</h4>';
  45. echo '<h4>'.Vip.' '.é.' '.$vip.'</h4>';
  46. echo '<h4>'.Skin.' '.é.' '.$skin.'</h4>';
  47. echo '<h4>'.Admin.' '.é.' '.$admin.'</h4>';
  48.  
  49.  
  50. }
  51. }
  52.  
  53. ?>
  54.  
  55. <form action="index.php">
  56. <input type="submit" value="Voltar" name="Voltar" />
  57. </form>
  58. </body>
  59. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement