Is there someone know how to programing php for printing output from mysql_fetch_array() with out using while or for ?
i mean like this, ussualy i will using like this
while ($row=mysql_fetch_array($query))
{
echo "<table><tr>";
echo "<td>".$row[0]."</td>";
echo "<td>".$row[1]."</td>";
echo "<td>".$row[2]."</td>";
echo "</tr></table>";
}
but it seem there's other way with out using Php like using this
<table>
<List:ITEM>
<tr>
<td>{name}</td>
<td>{address}</td>
<td>{phone}</td>
</tr>
</List:ITEM>
</table>
please some explain it to me ?
thanks,
i mean like this, ussualy i will using like this
while ($row=mysql_fetch_array($query))
{
echo "<table><tr>";
echo "<td>".$row[0]."</td>";
echo "<td>".$row[1]."</td>";
echo "<td>".$row[2]."</td>";
echo "</tr></table>";
}
but it seem there's other way with out using Php like using this
<table>
<List:ITEM>
<tr>
<td>{name}</td>
<td>{address}</td>
<td>{phone}</td>
</tr>
</List:ITEM>
</table>
please some explain it to me ?
thanks,
