fullySanitize($_COOKIE['mystic']); $catpath = $input->fullySanitize($_GET['cat_path']); $trans->beginTrans(); $pdo = $trans->getPDO(); if ($catpath != '') { $stmt = $pdo->prepare('SELECT name FROM advice_cat WHERE cat_path = ?'); $stmt->bindParam(1, $catpath); $stmt->execute(); $catname = ''; if ($myrow = $stmt->fetch(PDO::FETCH_NUM)) $catname = $myrow[0]; ?> <?= $catname ?> - Add Advice

Add Advice to This Category

Your name:
Your location:
Your email address:
Title your advice:
Enter your advice below:
fullySanitize($_POST['body']); $name = $input->fullySanitize($_POST['name']); $location = $input->fullySanitize($_POST['location']); $email = $input->fullySanitize($_POST['email']); $title = $input->fullySanitize($_POST['title']); $today = date('Y-m-d'); $stmt = $pdo->prepare('INSERT INTO advice (name, email, location, body, cat_path, title, date_added) VALUES (?, ?, ?, ?, ?, ?, ?)'); $stmt->bindParam(1, $name); $stmt->bindParam(2, $email); $stmt->bindParam(3, $location); $stmt->bindParam(4, $body); $stmt->bindParam(5, $catpath); $stmt->bindParam(6, $title); $stmt->bindParam(7, $today); $stmt->execute(); ?>

Your Advice Has Been Recorded

Advice submitted to Dating Diversions does not "go live" immediately. It is first reviewed by our editors before being posted to the advice section. Thank you for your submission!





commit(); $trans->disconnect(); ?>