Guest User

Untitled

a guest
Aug 29th, 2018
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. <?php
  2.  
  3. /**
  4. * @author Zenzie
  5. * @copyright 2011
  6. */
  7.  
  8. $mysql_server_name = "";
  9. $mysql_username = "";
  10. $mysql_password = "";
  11.  
  12.  
  13. if(isset($_GET['scriptId']) && isset($_GET['userId'])) {
  14. $script_name = $_GET['scriptId'];
  15. $user_id = $_GET['userId'];
  16. $con = mysql_connect($mysql_server_name, $mysql_username, $mysql_password);
  17. if(!$con) {
  18. die('Could not connect to database: ' . mysql_error());
  19. }
  20. elseif($con) {
  21. $SQL = "";//Sql shit
  22. $result = mysql_query($SQL);
  23. $count = mysql_num_rows($result);
  24. if($count == 0) {
  25. //TODO: set time out for hardware address
  26. //TODO: write empty script with error message
  27. }
  28. else if($count > 1) {
  29. //TODO: write script
  30. }
  31. }
  32.  
  33. }
  34. ?>
Add Comment
Please, Sign In to add comment