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
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.