get results more than one time
Posted: Fri Jun 22, 2007 4:52 pm
Hi there,
i am not really experienced with php and mysql.
So far i needed to get the querry results one time and i did it using that piece of code
but i tried to do the same for more than one time as in
and it would work only for the first of the three loops.
Anyone knows what i need to do?
THanks
i am not really experienced with php and mysql.
So far i needed to get the querry results one time and i did it using that piece of code
Code: Select all
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo $row["id"];
}Code: Select all
for($i=0;$i<3;$i++){
while ($row = mysql_fetch_array($result, MYSQL_ASSOC)) {
echo $row["id"];
}
}Anyone knows what i need to do?
THanks