Jump to content

Fetch Array


jones53084

Recommended Posts

Hi all,

I am writing a contact management php page.  In the page I use mysql_fetch_array() to show the search results.  If the user searchs by first name, there are times when multiple entries come up. Once the data is displayed on the screen the user has the option to edit, or delete this entry in the database.  So on this one screen it shows all the search results.  If the user clicks on edit or delete, I then create a $_SESSION variable to bring this information to the edit or delete page.  However this variable only gets created for the first entry when I do the mysql_fetch_array().  If I choose any entry after the first, it brings over the first entries information.  How would I create a variable to bring this over to another page to edit or delete each specific contact.  Is there a better way to do this?   

Thanks!
Link to comment
https://forums.phpfreaks.com/topic/29019-fetch-array/
Share on other sites

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.