Jump to content

[SOLVED] Need Help With PHP And MySql


FirePhoenix

Recommended Posts

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???

Link to comment
Share on other sites

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");

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.