Firstly apologies as i shouldnt have set a previous thread as solved.
The following script should:
1. get record with id of 1 and display in text box
2. after user changes it, it is written to mysql
3. the screen informs user that this has been achieved
Hi there,
You don't actually have a problem statement in your post, so I'm not really sure where you are going wrong.
But, I notice that after querying the database at the top of the file, you don't do anything with the $row variable, which is why you aren't seeing anything in your form the first time you load the page.
The form itself displays each of the headers.... title, subtitle, content, author and date..... but it doesnt echo the data that is held in the mysql database.
On changing the cell information and clicking submit, a success message is given, but the row in the database is not updated.
The form itself displays each of the headers.... title, subtitle, content, author and date..... but it doesnt echo the data that is held in the mysql database.
On changing the cell information and clicking submit, a success message is given, but the row in the database is not updated.
Okay in that case, please add the following at the end of your update query.
$query = mysql_query("QUERY") or die( "UPDATE ERROR:" . mysql_error() );
// QUERY being the update query you have been using.