lowrider1976 Posted September 4, 2008 Share Posted September 4, 2008 Hey guys/girls, Before i start, i just want to say that i hope i've found the right forum to put this post and that i think im within the rules to post this, please shoot me down in flames if im not!! So, my php skills are pretty none-existent and i have spent days trawling through the following script doing all sorts of things to try and help my problem, but finally i think i am ready to admit defeat! The problem that i am having is i want the output of the following script to show more than one of the "latest news" articles. (this script is from flexphp and im trying to change it to suit my needs a bit more). <td width="385px"> <table width="410" border="0" cellspacing="0" cellpadding="4"> <tr> <td class="h2"><?php print "$front_latestnews:"; ?></td> </tr> <?php $featureresult = $db->getfeaturenewsonhome(); if (!empty($featureresult)){ $newsid = $featureresult[0]["newsid"]; $title = $featureresult[0]["title"]; $intro = $featureresult[0]["intro"]; ?> <?php } ?> <?php if (!empty($homelatestresult)) { while ( list($key,$val)=each($homelatestresult) ) { $title = stripslashes($val["title"]); $newsid = stripslashes($val["newsid"]); ?> <tr> <td> <img src="../images/sbullet.gif"> <font class="h1"><?php print "$title"; ?></font><br> <div id="newsstory" class="content"> <?php print "$intro"; ?><br> </div> <br> </td> </tr> <?php } } ?> </td> </tr> </table> As i have said my php skills are minimal and therefore i dont know if the answer is right under my nose, or if it is a complex problem with a complex answer... Any help on the above would be largely appreciated and i hope that someone out there can help me! lowrider Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.