Jump to content

NEED help with Links and filling a FORM


comrade

Recommended Posts

Hello,

My problem is i have a database (mySQL) which i store just simple information. It looks like this;

id fullname             sex view edit delete

1 Brendan               m View Edit Delete   

2 Batman                 m View Edit Delete

3 Spider man         m View Edit Delete

4 Wonder man         f View Edit Delete

5 NULL                 m View Edit Delete

6 terry                 m View Edit Delete

20                         View Edit Delete

New

 

I add the new records i obtain from the "New" link on the bottom. And use a loop to add them along with the "view" "edit" and "delete" links. NOW my problem is. If I click "delete" on say ID # 1 , how do I determine which entry it is to delete it, what I'm asking is if all the "delete" links go to same URL example.com/delete_item.php how do i know its ID 1 and not something else. Then is i chose "edit" how do i load a form with that ID #'s info.

 

Thanks for any help,

ps i am new to php and mySQL

Regrads

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.