Why i'm getting undefined index when declaring variables? Currently using bootstrap.
<?php
mysql_connect("localhost", "root", "1234") or die(mysql_error()); mysql_select_db("newitems") or die(mysql_error());
$up = $_POST['update']; mysql_query("UPDATE announcements SET content = $up");
?>
Create an Announcement / Reminder:
<div class="controls">
<textarea id="update" name="update"></textarea><br>
<button id="annbtn" class="btn btn-success">Update Announcement</button>
</div>
</div>