Id like to get the value of this textbox from a row in a MySQL database, iv tried with this code:
while($row = mysql_fetch_assoc($res)) {
$row['body'] = str_replace("<br>", "\n", $row['body']);
echo '<h3>Previous Name: <br>' . htmlspecialchars(stripslashes(($row['name']))) . '</h3>';
}
else:
echo '<p>Oh Dear, This Is Embarrassing, It seems we cant find what your looking for!</p>';
endif;
}
//Ends Our Class
//Displays the posts
get_content();
?>
<p>
<form action='updatename.php' method='post'>
<input type='text' name='content' size='63.5' value='<?php echo $row['name']; ?>'" /><br>
<br>
<input type='submit' name='submit' value='Edit Name' />
</p>
Any idea how I can get this working, its tearing my hair out!


Sign In
Create Account


Back to top









