Guest User

Untitled

a guest
Jun 20th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1.  
  2. <?php
  3. $name=$_GET['name'];
  4. require_once ('config.php');
  5. $cerereSQL = 'SELECT * FROM utilizatori WHERE utilizator="'.$_SESSION['user'].'" ';
  6. $rezultat = mysql_query($cerereSQL);
  7. while($rand = mysql_fetch_array($rezultat)) {
  8. $nume=$rand['alianta'];
  9. }
  10. if($name == $nume) {
  11. $q=mysql_query("SELECT * FROM `utilizatori` where alianta='$name'");
  12. echo'</table><center>
  13. <p><table width="440" border="0" cellspacing="0" cellpadding="0">
  14. <tr>
  15. <td width="440" height="31"><h1><span class="style4"><u><center>'.$nume.'</h1></td>
  16. </tr>
  17. </table>
  18. <table width="440" border="0" bgcolor="#666666" class="tabel">
  19. <tr>
  20. <td width="17%" bgcolor="#BBE528"><center>
  21. <b><u>Nr:</u></b>
  22. </center></td>
  23. <td width="29%" bgcolor="#BBE528"><center>
  24. <b><u>Membri:</u></b>
  25. </center></td>
  26. <tr>';
  27. while($r = mysql_fetch_array($q)){
  28. $utilizator=$r['utilizator'];
  29. $i=0;
  30. $i++;
  31. //echo $utilizator.' <br />';
  32.  
  33.  
  34. echo'<td width=\"22%\" bgcolor=6666FF><center><b>'.$i.'</b></center></td>
  35. <td width=\"55%\" bgcolor=6666FF><b><center>'.$utilizator.'</b></td>
  36. </tr>';
  37. }
  38. echo' </table>';
  39. }
  40. else { echo 'nu esti in alianta!!';}
  41.  
  42. ?>
Add Comment
Please, Sign In to add comment