help needed, with while...
Posted: Wed May 10, 2006 1:50 pm
Weirdan | Please use
thanks.
Weirdan | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hello!
Can somebody tell me pls whats wrong with this little piece of code?
It outputs: [ 1 ] ( 3 ) ( 2 ) [ 2 ] [ 3 ]
But it should: [ 1 ] ( 3 ) ( 2 ) [ 2 ] ( 3 ) ( 2 )[ 3 ]( 3 ) ( 2 )
im all out of ideas...Code: Select all
while($row=mysql_fetch_array($answere))
{ echo "[ ".$rida[eq_id]." ] ";
while($row=mysql_fetch_array($answere2))
{
echo "( ".$rida2[eq_id]." ) ";
if($row[eq_id] == $row2[eq_id])
{
$AAA=checked;
break 1;
}
}Weirdan | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]