Follow along with the video below to see how to install our site as a web app on your home screen.
Бележка: This feature may not be available in some browsers.
:idea:$country = array();
while ($row = mysql_fetch_row($query)) {
$country[] = $row[1];
}
print_r($country);
За какво ти е тая променлива $allcountry :?:cold_zero каза:Нещо не се получава:
Код:$country = array(); $query = "SELECT name FROM country order by id desc limit 20"; $result = mysql_query($query) or die(mysql_error()); while($row = mysql_fetch_row($result)) { $country[] = $row[0]; } $allcountry = print_r($country);
Такова нещо няма!$allcountry = print_r($country);
$country = array();
$query = "SELECT name FROM country order by id desc limit 20";
$result = mysql_query($query) or die(mysql_error());
while($row = mysql_fetch_row($result))
{
$country[] = $row[0];
}
print_r($country);