Public paste
2 sql
By: Greg | Date: Mar 19 2009 14:38 | Format: PHP | Expires: never | Size: 598 B | Hits: 470

  1. <?php
  2. require_once('Connections/database_connection.php');
  3. mysql_select_db($database_database_connection, $database_connection);
  4. $setfeature0 = mysql_query("UPDATE file SET file_featured='0' WHERE file_featured='1'") or die(mysql_error());
  5. $setfeature1 = mysql_query("UPDATE file SET file_featured='1' WHERE file_id='$_GET[id]'") or die(mysql_error());
  6. mysql_query($setfeature0, $database_connection) or die(mysql_error());
  7. mysql_query($setfeature1, $database_connection) or die(mysql_error());
  8.  
  9. ?>
  10.  
  11. http://fyp.greghesp.com/adminarea.php
  12. need to login before hand:
  13. UN: admin
  14. PW: admin