PHP + User Edit Button
<p>Sorry for my ignorance.  Does anyone have any input to help me here.  </p>

<p>I'm trying to create a page that queries a database and shows open entries.  I want the users to be able to click inline, or by a seperate page and edit the field.  </p>

<pre><code>&lt;?php
$con = mysql_connect("localhost","user","password");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}

mysql_select_db("maint", $con);

$result = mysql_query("SELECT * FROM Maintenance WHERE status='open'");

while($row = mysql_fetch_array($result))
{
echo "&lt;center&gt;&lt;div style='top: 10px; left: 3px; width: 500px; height: 250px; border: dotted; padding: 5px'&gt;";
echo "&lt;br&gt;&lt;b&gt;Name: &lt;/b&gt; " . $row['name'] . "&lt;br&gt;";
echo "&lt;b&gt;Issue: &lt;/b&gt; " . $row['detailed'] . "&lt;br&gt;";
echo "&lt;b&gt;Status: &lt;/b&gt;" . $row['status'] . "&lt;br&gt;";
echo "&lt;b&gt;Comments: &lt;/b&gt;" . $row['comments'] . "&lt;br&gt;";
echo "&lt;br/&gt;&lt;br/&gt;";
echo "&lt;input type='submit' name=button /&gt;&lt;br&gt;";
echo "&lt;/div&gt;&lt;br&gt;";

}

mysql_close($con);
?&gt;
</code></pre>

<p>Can someone just lead me in the correct direction.  I'm only a noob programmer so I apologize if this is basic stuff.  </p>
