Pastebin
Paste #465: php
< previous paste - next paste>
Pasted by tdn
1 <?
2 require_once("constants.php");
3 require_once("config.php");
4 require_once("functions.php");
5 require_once("db_open.php");
6
7 var_dump($_POST);
8 var_dump($_GET);
9 if (!(isset($_POST['profile']) && isset($_POST['path_in']))) {
10 die("ERROR: profile or path_in was not specified.");
11 }
12
13 $path_in = $_POST['path_in'];
14 $profile = $_POST['profile'];
15 #id | date_created | path_in | path_out | status | fk_profileid | run_result
16
17 $q = prepare_statement("INSERT INTO job(path_in, fk_profileid) VALUES(%s, %s)", $path_in, $profile);
18 $result = exec_statement ($q);
19
20 require_once("db_close.php");
21 ?>
New Paste
Go to most recent paste.