Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- include "konekcija.php";
- if (!isset($_GET['uid']) and is_numeric($_GET['uid'])){
- exit("Mora biti zadan parametar UID");
- }
- /////////////////////////////////////////////////////////////////////////////////////////////////
- $id=$_GET['uid']; //ID korisnika od koga hoces podatke
- $podaci1=mysql_fetch_array(mysql_query("SELECT * FROM gbywj_users WHERE id=$id"));
- $podaci2=mysql_fetch_array(mysql_query("SELECT * FROM gbywj_kunena_users WHERE userid=$id"));
- $rank=mysql_fetch_array(mysql_query("SELECT * FROM gbywj_kunena_ranks WHERE rank_id=$podaci2[rank]"));
- if ($podaci1['username']==""){
- exit ("Korisnik ne postoji");
- }
- $text1 = $podaci1["username"]; // text
- $text2 = $id; // text
- $text3 = $rank["rank_title"]; // text
- $text4 = $podaci2["posts"]; // text
- $text5 = $podaci1["registerDate"]; // text
- $text6 = $podaci2["karma"]; // text
Advertisement
Add Comment
Please, Sign In to add comment