Jump to content

edit data entry


nec9716

Recommended Posts

what is the easiest way to edit and database entry ( php sql )

 

presently on my php page I can enter a new data in a specific table and at the same time that show me all the data in this table

 

do you think that I can set up radio button on the side of each data ...not sure if my explaination is quite good ...can I send a link to ,my web page here?

Link to comment
Share on other sites

Well, given that you're probably only going to be wanting to edit one entry at a time, it would probably be neater to have a link which takes you to a page which allows the user to modify the row.

 

You will need to pass something in the URL (hopefully you have a unique ID) to identify the row in question. You can then pull the relevant information from the database, and populate a form which the user can edit. Once the form is submitted, you can use an update sql query to change the row.

 

Does that help?

Link to comment
Share on other sites

Frijole thank you for your reply ....first term in PHP ....that a new one for me ...but UPDATE I will remeber that one

 

ginger robot:

sure that will help ...I just have to figure how to chage my script to set that up ...I will keep you in touch tomorrow I will try that

 

 

thank you

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.