.EditorDialog{display:none;}'; }else { //If id is set check in database if exists include 'db.php'; $stmt = $mysqli->prepare("SELECT data FROM ImgAnnotations WHERE id = ? LIMIT 1"); $stmt->bind_param("i", $_POST["TheID"]); $stmt->execute(); $result = $stmt->get_result(); $resultData = $result->fetch_assoc(); //Check if exists if (!empty($resultData)) { //If exists get data $TheData = $resultData['data']; }else { //If not exists start clean $TheData = ""; } } ?>
">
">
">