Jump to content

[SOLVED] Flexphp Latest news....


lowrider1976

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/122754-solved-flexphp-latest-news/
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.