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