Hey... nice to see I'm not bugging you enough for you to avoid my post.....
Anyway (since your here and all), I am having trouble getting my MySql function to update.... (most likely its a typo that I am blind to)... So here goes:
<EditCompany.php>
<?php
$modify = $_GET['id'];
?>
<form method="POST" action="EditCompany2.php">
<input type="hidden" name="ModifyID" Value="<?php
echo $modify;
?>">
<table cellspacing="0" cellpadding="2" border="1">
<tr>
<td>Company Name</td>
</tr>
<?php
include '../includes/Connect.php';
mysql_select_db("$dbDatabase", $db) or die ("Couldn't select the database.");
$result = mysql_query("SELECT * FROM company WHERE Company_id = '$modify'");
if (!$result) {
echo 'Could not run query: ' . mysql_error();
exit;
}
$row = mysql_fetch_row($result);
echo '<tr>
<td><input type="text" name="ModifyCompany" size="20" value="';
echo $row[1];
echo '"></td>';
echo '"></tr>';
?>
</table>
<input type="submit" value="Modify" />
<EditCompany2.php>
<?php
include 'includes/Header.php';
//Get Post Information
$ModifyID = $_POST['ModifyID'];
$ModifyCompany = $_POST['ModifyCompany'];
//Connect to Database
include '../includes/connect.php';
mysql_select_db("$dbDatabase", $db) or die ("Couldn't select the database.");
$Query =mysql_query("UPDATE company SET company_name='$ModifyCompany' WHERE user_id='$ModifyID'");
header( "Location: ValidURL" );
?>