You are here: Automatic requery « PHP Programming Language « IT news, forums, messages
Automatic requery

Posted by stan on 09/10/06 01:58

I'm sure I'm missing something simple here; help will be appreciated.

I've got a search form that displays records from a MySQL db matching
criteria entered by the user; the search form appears again below the
results. Each row of the recordset is shown with edit and delete links,
which call other .php pages (one for editing, one for confirmation of
the delete). All that works fine.

The edit and delete-confirm pages have links to return to the search
results, using javascript:history.go(?). This also works fine.

Trouble is, the edit or deletion is (of course) not reflected when the
user returns to the search results.

Ideally, the "return to search results" links would automatically
requery the db before showing the results. The only way I've found to
do that is to preserve the user's entries in the form, which would be
kinda handy anyway since it would make for easier refinement of the
search -- but if I do that, my "Reset" button doesn't work; the form
continues to show the user's previous entries.

What am I missing?

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация