Guest User

hh

a guest
Aug 27th, 2012
43
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. <?php
  2. include "konekcija.php";
  3. if (!isset($_GET['uid']) and is_numeric($_GET['uid'])){
  4. exit("Mora biti zadan parametar UID");
  5. }
  6. /////////////////////////////////////////////////////////////////////////////////////////////////
  7. $id=$_GET['uid']; //ID korisnika od koga hoces podatke
  8. $podaci1=mysql_fetch_array(mysql_query("SELECT * FROM gbywj_users WHERE id=$id"));
  9. $podaci2=mysql_fetch_array(mysql_query("SELECT * FROM gbywj_kunena_users WHERE userid=$id"));
  10. $rank=mysql_fetch_array(mysql_query("SELECT * FROM gbywj_kunena_ranks WHERE rank_id=$podaci2[rank]"));
  11.  
  12. if ($podaci1['username']==""){
  13. exit ("Korisnik ne postoji");
  14. }
  15.  
  16. $text1 = $podaci1["username"]; // text
  17. $text2 = $id; // text
  18. $text3 = $rank["rank_title"]; // text
  19. $text4 = $podaci2["posts"]; // text
  20. $text5 = $podaci1["registerDate"]; // text
  21. $text6 = $podaci2["karma"]; // text
Advertisement
Add Comment
Please, Sign In to add comment