Jump to content

unexpected output


hamza

Recommended Posts

<h2> FAQ's </h2><br>
<div id="page_contents">	
<table border="0" width="100%" cellspacing="1" cellpadding="3" class="white"> 
<?php 
$sql = "SELECT * FROM ".$dbtables['tab_1'];
$result = $db->query(getPagingQuery($sql,FAQ_PP)); 
$count = 1;
while($row = $db->fetchNextObject($result)) {
    if ( $count%2 ) {
	$class = "admin_white";
} else {
    $class = "admin_gray";
}
?>
  <tr>
    <th width="413" class="admin_white" align="left"><strong><em><?=$row->question;?></em></strong></td> </tr>
  <tr>
    <td class="<?=$class?>" width="413" align="left"><?php echo $row->answer; ?></td>
  </tr>
  <?php
  $count++;
} 
?>
  <tr>  
    <td align="center"><?php echo getPagingLink($sql,FAQ_PP, $strGet = ''); ?></td>
  </tr>
    <tr>  
    <td colspan="4" align="center"> </td>
  </tr>
</table>
</div>   	  
<hr>
<p> </p>

 

The problem is that

whn you put this code in fckeditor it will show you php code which i am not expecting

please check it out what exactly is wrong

in this code.

 

============

thanks for any help

 

 

 

Link to comment
https://forums.phpfreaks.com/topic/176839-unexpected-output/
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.