Jump to content

php retrieve multiple data from mysql


whynot

Recommended Posts

I insert multiple id from my checkbox to mysql database using php post form. in e.x i insert id (checkbox value table test) to mysql. no i need to any function for retrieve data from mysql and print to my page with my e.x output.(print horizontal list name of table test where data = userid)

 

my checkbox value ( name table is test ) :

01	---id----- name    ----
02	---1 ----- test1   ----
03	---2 ----- test2   ----
04	---3 ----- test3   ----
05	---4 ----- test4   ----
06	---5 ----- test5   ----
07	---6 ----- test6   ----
08	---7 ----- test7   ----
09	---8 ----- test8   ----
10	---9 ----- test9   ----

 

mysql data Insert ( name of table usertest ):

 

1	---id----- data    ---- userid -----
2	---1 ----- 1:4:6:9 ---- 2      -----
3	---2 ----- 1:2:3:4 ---- 5      -----
4	---3 ----- 1:2     ---- 7      -----

 

example outout : ( print horizontal list name of table test where data = userid )

 

 

print?

1	user id 2 choise : test1 - test4 - test6 - test9

 

Thanks

Link to comment
https://forums.phpfreaks.com/topic/260571-php-retrieve-multiple-data-from-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.