7
i dont understand kaotik..im new to php and i think i should explain myself again..sorry my english sucks
what i really want to do is to post an article using the content module by formuss..
in the article i want to show a table ..the data in the table is from my db
example of my query
<?php
global $xoopsDB;
$result = mysql_query("SELECT * FROM ".$xoopsDB->prefix("section_info")." WHERE Unit='Pharmacy' ORDER BY senioriti");
$count =1;
echo "<table><tr class='head'>";
echo "<td>No</td>";
echo "<td>Name</td>";
$style=0;
while($row = mysql_fetch_array($result))
{
$my_id=$row['my_id'];
echo '<tr class="', ++$style & 1 ? 'even' : 'odd', '">';
echo "<td>";
echo $count++;
echo "</td>";
echo "<td><b>" . $row['name'] . "</b></td>";
echo "</tr>";
}
echo "</table>";echo "";
?>
so how can i use the code above to post it in my content ?