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