Should there be an if statement to stop the loop from continuing or should the 
query take care of only returning the proper data?
 
<?php  
  $count = 0;
  //echo $count;
  //$article =mysql_fetch_object($result);
  while ($line = mysql_fetch_object($result)) {  
?>

     <table border="0" cellspacing="0" cellpadding="0" width="328">
       <tr>
    <td width="328" height="41" class="pageName" >
     <?php echo $line->title; ?> 
    </td>
          </tr>
       <tr>
    <td class="bodyText">
     <p>
     <?php echo $line->description; ?>
     </p>
     
     <p>&nbsp;</p>            
    </td>   
          </tr>
            </table>
<?php 
  $count ++;
  }; 
  
?>
  
 <table border="0" cellspacing="0" cellpadding="0" width="328">
 
 <tr>
  <td>
   <?php //echo $count; ?> 
   <?php echo "<html> &nbsp; &nbsp;  $count Results for $searchKeyword 
</html>"; ?>
   <?php //echo $searchKeyword; ?>
  </td>
 <tr>
 
 </table> 
  

[Non-text portions of this message have been removed]



The php_mysql group is dedicated to learn more about the PHP/MySQL web database 
possibilities through group learning.  
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php_mysql/

<*> Your email settings:
    Individual Email | Traditional

<*> To change settings online go to:
    http://groups.yahoo.com/group/php_mysql/join
    (Yahoo! ID required)

<*> To change settings via email:
    mailto:[EMAIL PROTECTED] 
    mailto:[EMAIL PROTECTED]

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to