Advertisement
Guest User

Untitled

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