twice data output using foreach!?
Posted: Sun Feb 17, 2008 1:43 pm
I am loading data from database but I get the data twice!?
***** PLEASE USE
***** PLEASE USE
Code: Select all
WHEN POSTING *****[/color]
[syntax=php]if (is_array($fetch)){
foreach ($fetch as $data){
print "<table><tr><td>".$data."</td></tr></table>";
}
}[/syntax]
Display:
string1
string1
string2
string2
string3
string3
Why it would do that?
Thanks.