i have
$query = mysql_query("SELECT * FROM `test` WHERE `user_id` =$id");
while ($row1 = @mysql_fetch_array($query))
{
/////some echo codes
}
while ($row2 = @mysql_fetch_array($query))
{
/////some echo codes
}
but second "while" doesn't work. i forced to define another $query same as first $query and used it in second while.
is there any way to use only one $query define to use in 2 while?
thanks