SHARE
TWEET

Untitled

a guest Jan 18th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class photos
  2. {
  3.  
  4.     var $pid;
  5.     function showactivitypics(){
  6.  
  7.         $sql = mysql_query("SELECT * FROM activity ");
  8.         while ($row = mysql_fetch_array($sql)) {
  9.             $picid= $row['picid'];
  10.             $this->pid=$picid;
  11.         }
  12.     }
  13.  
  14.     function picname(){
  15.         echo $this->pid;
  16.     }
  17. }
  18.  
  19. $photo=new photos();
  20.    
  21. <?php $photo->picname();    ?>
  22.    
  23. <?php $photo->pid; ?>
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top