Mo <Mehile.Orloff@ gmail.comwrote:
may be the iteration should be inside your function qryFunc ?
or, return $fQuery (when no error)
and then :
$reponse=qryFun c($select, $from);
while ($empRow = mysql_fetch_arr ay($reponse,MYS QL_ASSOC))
// or mysql_fetch_ass oc($reponse)
{
print $empRow["name"] . "<BR />";
}
because, as far as i've understood your code, each time u oterate (while
loop) there is a new call to the fucntion "qryFunc" and u use only the
first result giving an infinite loop ???
--
Une Bévue
while ($empRow = qryFunc($select , $from))
{
print $empRow["name"] . "<BR />";
}
{
print $empRow["name"] . "<BR />";
}
or, return $fQuery (when no error)
and then :
$reponse=qryFun c($select, $from);
while ($empRow = mysql_fetch_arr ay($reponse,MYS QL_ASSOC))
// or mysql_fetch_ass oc($reponse)
{
print $empRow["name"] . "<BR />";
}
because, as far as i've understood your code, each time u oterate (while
loop) there is a new call to the fucntion "qryFunc" and u use only the
first result giving an infinite loop ???
--
Une Bévue
Comment