Re: help with mysql and php: php-generated list not refreshing

  • From: "Octavian Rasnita" <orasnita@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Tue, 16 Dec 2008 17:27:56 +0200

You need to first delete the record, then select the new list of records from the database for populating that list, and then display the list.


Probably your program first gets the list of records from the database, deletes the chosen record, then displays the list of records, so the list displays the old list.

Of course, after a new refresh, the program gets the new list of records which is the correct one.

Octavian

----- Original Message ----- From: "Alex Hall" <mehgcap@xxxxxxx>
To: <programmingblind@xxxxxxxxxxxxx>
Sent: Tuesday, December 16, 2008 4:42 PM
Subject: help with mysql and php: php-generated list not refreshing


Hi all,
I have a page that contains a select list. This list is generated by php from records in a mysql database. There is a second form on this page which does something with the selected record (edits or deletes it), and the action of this edit/delete form is the same page. When I submit, though, the page seems to refresh, which I would think would update the list of records. However, even if I delete a record, the list still shows that record until I refresh the page manually. What can be done here? Thanks!

Have a great day,
Alex
__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind


__________
View the list's information and change your settings at //www.freelists.org/list/programmingblind

Other related posts: