FirePhoenix Posted February 21, 2007 Share Posted February 21, 2007 I am very new to PHP and MySql. I needed to make it easy for someone with no coding knowledge to update a section of the site. I made a database in mysql for this.... I can connect to it, put data in the table and retrieve the data for viewing but i have two problems.... 1.) I need to change the information on a row and not ad a new row I am only using one row. I know you use the UPDATE thing, and I have read every tutorial I can find and it seems like everyone is somewhat different. I am just confused.... 2.) The part that displays the contents of the database works, but if you hit back or return to the page after the information has been changed you have to click the refresh button to view the new info. Is there a way to fix this?? Can some one please help??? Quote Link to comment Share on other sites More sharing options...
styx66 Posted February 21, 2007 Share Posted February 21, 2007 For #1, a little more detail is needed. You need to know the proper syntax, or..? For #2, try adding this to the top of each of your pages: header("Expires: Thu, 17 May 2001 10:17:17 GMT"); header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); header("Cache-Control: no-cache, must-revalidate"); header("Pragma: no-cache"); Quote Link to comment Share on other sites More sharing options...
FirePhoenix Posted February 22, 2007 Author Share Posted February 22, 2007 Well thank you but I figured it out.... I feel stupid I was using $_post and not $_POST and it was making everything act crazy Thank You Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.