Can someone of you explain me the difference between this two functions and which should i use in standard?
if ($row = $db->sql_fetchrow($result))
{
$i = 0;
do
{
// php funcs
$template->assign_block_vars('iprow', array());
$i++;
}
while ($row = $db->sql_fetchrow($result));
}
{
$i = 0;
do
{
// php funcs
$template->assign_block_vars('iprow', array());
$i++;
}
while ($row = $db->sql_fetchrow($result));
}
while ($row = $db->sql_fetchrow($result))
{
// php funcs
$template->assign_block_vars('iprow', array());
$i++;
}
{
// php funcs
$template->assign_block_vars('iprow', array());
$i++;
}
Thanks!