The SitePoint Forums have moved.

You can now find them here.
This forum is now closed to new posts, but you can browse existing content.
You can find out more information about the move and how to open a new account (if necessary) here.
If you get stuck you can get support by emailing forums@sitepoint.com

If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

these two scripts wont communicate

Hi,

I have these two scripts. Basically the first one prints out a list of blog titles with a link through to another page which will enable the user to edit the blog post. The first script is here and works fine:

Thanks for the replies...i forgot to mention im a complete newb when it comes to programming.

Yes the closing bracket fixed it and then the code worked but as was pointed out the while was an infinite loop and crashed my browser! although im not 100&#37; sure why it is an infinite loop. Is it becuase $row['title'] is always going to be true?

Now this works and the database is updated if a user edits the copy. The problem with it though is that if a user edits the text and clicks submit the info in the fields changes back to what it was before it was edited. You have to click refresh before you can see the changes. I cant work this out! any ideas?

Thanks for the reply. Unfortunately it doesnt work. The datbase gets updated with the edited info but the screen shown after the submit button is pressed still shows the text before it was edited. The difference with your code is that when you refresh the page the text doesnt update to the edited version as my code before was.