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
https://forums.phpfreaks.com/topic/39405-solved-need-help-with-php-and-mysql/
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");

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.