It sounds to me like you need someone to actually write the modification for you since you have posted no code here. I can tell you in the most basic of terms what to do, but you would need to code it.
- do a query of the table to get all card ids for the user
- in a while loop, spit out the html code for each image: <img src="$variable['p_card'].png" alt='' /> and put it all into a variable like $mycards
- preregister the variable $mycards for use in the template you want to use it in
- spit out the variable $mycards where you want it in the template
|