Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @author Zenzie
- * @copyright 2011
- */
- $mysql_server_name = "";
- $mysql_username = "";
- $mysql_password = "";
- if(isset($_GET['scriptId']) && isset($_GET['userId'])) {
- $script_name = $_GET['scriptId'];
- $user_id = $_GET['userId'];
- $con = mysql_connect($mysql_server_name, $mysql_username, $mysql_password);
- if(!$con) {
- die('Could not connect to database: ' . mysql_error());
- }
- elseif($con) {
- $SQL = "";//Sql shit
- $result = mysql_query($SQL);
- $count = mysql_num_rows($result);
- if($count == 0) {
- //TODO: set time out for hardware address
- //TODO: write empty script with error message
- }
- else if($count > 1) {
- //TODO: write script
- }
- }
- }
- ?>
Add Comment
Please, Sign In to add comment