Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function profileShow($uid, $num){
- require('conn.php');
- $result = mysql_query("SELECT * FROM achiv WHERE uid='{$uid}'");
- $i = 0;
- $stop = 0;
- while($row = mysql_fetch_array($result))
- {
- while($stop == 0)
- {
- $i++;
- if ($i == $num){
- $stop = 1;
- }
- else{
- $tehid = "a".$i."";
- if ($row[$tehid] == 1)
- {
- $name = $this->achivName($i);
- $desc = $this->achivDesc($i);
- echo '<i><b>'.$name.'</b></i><br/>';
- echo '<span id="uMad">'.$desc.'</span> '.$i.'/'.$num.'<br/>
- ';
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement