Jump to content

HELP in radio button and mysql PLEASE!


leolim

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

 

 

 

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.