Guest User

Untitled

a guest
Jan 18th, 2019
76
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  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; ?>
Add Comment
Please, Sign In to add comment