// Connect and select DB
include ("../includes/dbconn_web14_pcgf_site.php");
// Define a query to update the table
$sql = "UPDATE members SET membername='$membername',
cssname='$cssname',
xfire='$xfire',
about='$about',
steamid='$steamid',
group_id='$group_id'
WHERE member_id='$member_id'";
// Run the query
$result = mysql_query($sql);
// Close DB connection
mysql_close();
// print a message
print "<p>The member <strong>$membername</strong> was updated.</p>";
} elseif (isset($_GET['member_id']) { // display edit form
$member_id = $_GET['member_id'];
// connect and select DB
include ("../includes/dbconn_web14_pcgf_site.php");
// define query to get details
$sql = "SELECT * FROM members WHERE member_id='$member_id'";
// run the query
$result = mysql_query($sql);
while ($row = mysql_fetch_array($result)) { // display form
its somewhere in the middle, you can copy and paste the code into notepad (if you dont have an editor that shows line numbers) and use the goto feature to go to line 127. make sure wordwrap is off tho.
« Reply to parse error - i cant see whats wrong...