Posted by Flayra Sun 11th Mar 2007 21:07 - Syntax is PHP - 32 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers
PHP parser reported no syntax errors in this post!
  1. /*
  2. ... database fetching and stuff ...
  3. */
  4.  
  5. $lastknown = '';
  6.  
  7. echo "";
  8. while ($row = mysql_fetch_row($result))
  9. {
  10.     if ($row['user'] != $lastknown) {
  11.         echo "
  12. \n"
    ;
  13.         echo "\n";
  14.         $lastknown = $row['user'];
  15.     }
  16.    
  17.     // insert regular rows here
  18.     echo "
  19. ".$row['user']." ".$row['otherdata'].".......";
  20. }
  21. echo "
  22. "
    ;
  23. ?>

PermaLink to this entry https://pastebin.co.uk/11682
Posted by Flayra Sun 11th Mar 2007 21:07 - Syntax is PHP - 32 viewsRun this post in the PHP shell
Download | New Post | Modify | Hide line numbers

 

Comments: 0