Jump to content

Recommended Posts

hi, this is the beginning of my php lesson and i might need some guide here

 

 

I have created a simple MySQL database, with  fields;

$idnum

$name

$address

$date

 

I'd like to be able to show idnum, name, and address, and date (along with a radio

button in front of each record) for all record in the database into a table.

 

The user will select a radio button for appropriate peom, then simply hit a

'delete' button, which of course will delete it from the database.

 

currently i am having a hard time with what I need to DO them.

 

Anyone who can help?

 

So, can anyone point me to any tutorials/scripts/tips/etc that might help?

 

 

Thanks

 

Link to comment
https://forums.phpfreaks.com/topic/68780-help-in-radio-button-and-mysql-please/
Share on other sites

If this is your first lesson, you are going at a rate thats way too fast. You should build yourself up to being able to do this, that way when you get to this lesson, you will be able to do it without a problem.

 

Here is what you will need to learn:

-Retrieving/deleting information from the database with MySQL

-Looping through the rows with a while loop

-Working with forms and PHP

-Using $_POST data, which goes along with forms.

 

At least try to attempt it the best you can, then post the code you end up with. Before even doing that, I would suggest learning the very basics of PHP.

Well, here are some tutorials to start reading:

 

Working with Forms

http://www.onlamp.com/pub/a/php/2003/03/13/php_foundations.html

http://www.tizag.com/phpT/forms.php

 

www.tizag.com has a lot of good tutorials, you might want to just start going from lesson to lesson on that site.

 

Retrieving information from the DB

http://www.redhat.com/magazine/010aug05/features/mysql/

http://www.php-mysql-tutorial.com/php-mysql-select.php

 

Looping through rows in the DB (while loop)

http://www.tizag.com/phpT/whileloop.php

 

 

 

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.