Jump to content

InfinityBooster

New Members
  • Posts

    1
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

InfinityBooster's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. <?php $title = "Update Confirmation"; include('includes/header.inc'); include('includes/nav.inc'); require_once('includes/config.inc'); require_once('includes/DbController.inc'); echo "<div id='message'>"; $error = false; if (!empty($_POST['id'])) { $db = new DbController(HOST,USER,PASS,DB); foreach ($_POST as $key => $val) { $$key = trim($val); } $sql = "UPDATE places SET location=?, theme=?, description=?, WHERE placeid=?"; $update = $db->updateRecord($sql, $location, $theme, $description, $id); if ($update) { echo "<p>Record $placename updated</p>"; } else { $error = true; } } else { $error = true; } if ($error) { echo "<p>Record is NOT updated.</p>"; } echo "</div>"; include('includes/footer.inc'); ?>
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.