i have a database wherein i echo anything i want but i want to echo something else every time the code echos 2 things. I actually tried foreach() function but im actually quite confused on how to use it with this kind of situation
here's an example:
$sql = "SELECT * FROM table ORDER BY ID DESC LIMIT 0, 100";
$rs = mysql_query($android_app_sort,$con);
while($row = mysql_fetch_assoc($android_app_q_sort))
{
echo $row['ID'];
<--FOR EVERY 2 echos's then ECHO SOMETHING-->
}
all help is appreciated