Why I'm getting an 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");
 ?>
 <div class="well well-small text-center">
 <h3>Create an Announcement / Reminder:<br>
 <form class="form-group" id="form-mahasiswa" method="POST" action="ad_post.php">
  <div class="control-group">
    <div class="controls">
        <textarea id="update" name="update"></textarea><br>
        
        <button id="annbtn" class="btn btn-success">Update Announcement</button>
    </div>
</div>
 
     
    