Advertisement
Guest User

Untitled

a guest
Jul 20th, 2017
57
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.86 KB | None | 0 0
  1. <?php
  2.     $edit1 = mysql_query("SELECT * FROM torrents WHERE id = $id");
  3.     $edit1Stores = array();
  4.    
  5.     while ($edit1Store = mysql_fetch_assoc($edit1)) {
  6.             $edit1Stores[] = $edit1Store;
  7.         }
  8.  
  9. //SOME STUFF*****************************
  10.  
  11.     $edit2 = mysql_query("SELECT * FROM torrents WHERE id = $id");
  12.     $edit2Stores = array();
  13.    
  14.     while ($edit2Store = mysql_fetch_assoc($edit2)) {
  15.             $edit2Stores[] = $edit2Store;
  16.         }
  17.        
  18.     do {
  19.         if $edit1Stores[0] != $edit2Stores[0]{
  20.             $TotalEditPoints = $TotalEditPoints + $EditPointsDescription;
  21.             $LogMessage = $LogMessage . " Changed ". $edit1Stores[0]. " to ". $edit2Stores[0].". /n"
  22.         }
  23.        
  24.         if $edit1Stores[1] != $edit2Stores[1]{
  25.             $TotalEditPoints = $TotalEditPoints + $EditPointsCatagorie;
  26.             $LogMessage = $LogMessage . " Changed ". $edit1Stores[1]. " to ". $edit2Stores[1].". /n"
  27.         }
  28.        
  29.         } while {???};
  30.  
  31. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement