/modules/images/ajax/add_screenshot_tag.php
PHP | 24 lines | 23 code | 0 blank | 1 comment | 0 complexity | 01c016f407e78cb812861aaecd49b335 MD5 | raw file
- <?php
- include('../../../config.php');
- include('../../../mysql.php');
- $link = mysql_connect($mysqlhost, $mysqluser, $mysqlpass) or die("Could not connect to server");
- mysql_select_db($mysqldb) or die("Could not select database");
- $insert_sql = "INSERT INTO screenshots_pos (
- `screenshot_id`,
- `x_coord`,
- `y_coord`,
- `width`,
- `height`,
- `tag_text`
- ) VALUES (
- '" . $_POST['id'] . "',
- '" . $_POST['pos_x'] . "',
- '" . $_POST['pos_y'] . "',
- '" . $_POST['pos_width'] . "',
- '" . $_POST['pos_height'] . "',
- '" . $_POST['tag_text'] . "'
- )";
- $insert_query = mysql_query($insert_sql) or die(mysql_error());
- echo $update_sql;
- //echo $_POST['id'];
- ?>