Jump to content

Store a list in MySQL?


Repgahroll

Recommended Posts

Hello.

 

I'm making a simple modification on drupal, and there will be a option to choose the pets the user has, pretty simple though, there will be a button "add new pet" and then the options "type" (dog/cat/hamster/parrot...), "name", and "age".

 

However, this is endless... when the user click on "add new pet" another button appears, and they can add as many pets as they want.

 

So i think it's better to store these informations in lists, a list for 'type', a list for 'name' and etc.

 

However, I don't know how to store a list in a MySQL db. And access it later.

 

Can you help me?

 

Thanks in advance.

Link to comment
https://forums.phpfreaks.com/topic/181387-store-a-list-in-mysql/
Share on other sites

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.