I am trying to make a call to cpmfetch and insert html code smartly into my page. The php seems to return an entire <table>. Is there an option so I can just get back the image tag?
Thanks in advance,
Chris
Use
$objCpm->cpm_setReturnType('resultset');
Then format the data as you wish.
Seems like there have been a lot of posts about this. Everyone seems to take their own tact. If there is some sample code on how to deal with the resultset data set, it would be appreciated.
Quote from: judl on December 08, 2009, 01:36:01 AM
Seems like there have been a lot of posts about this. Everyone seems to take their own tact. If there is some sample code on how to deal with the resultset data set, it would be appreciated.
This gets into just plain old PHP. If you pick up on learning some basic PHP you will be fine. The results come back as an array, and you just need to loop through them.
Google on stuff like
- Arrays in php
- foreach loops in php
- echo in php