Hi,
I have problems with writting a query into an array. I have
$row['countryID'] and $row['countryname'] and i need to put them into something like countries[0]['countryID'],countries[0]['countryname'],countries[1]['countryID'], countries[1]['countryname] ........
Here is my code and it doesn't work.
$sql="select * from tari";
$result=mysql_query($sql);
while($row=mysql_fetch_array($result))
{
$countries[$i][$id_tara]=$row['id_tara'];
$countries[$i][$nume_tara]=$row['nume_tara'];
}
Someone could tell me what's wrong ?