Создать форум бесплатно: ixbb.ru :: Календарь на Март 2024 года: calendar2008.ru/2024/mart/

  Reply to this topicStart new topicStart Poll

Окно Select HTML и данные из MySQL

, Как сделать список из данных базы???
Freeware
Отправлено: Sep 20 2009, 08:29 AM
Quote Post


  Солдат
*

Группа: unior
Сообщений: 1
Пользователь №: 2844
Регистрация:
20-September 09



Вопрос: Не получается сделать список выбора Селект для страницы из данных базы... Как правильно указать, чтобы данные из запроса выводились в это окошко выбора списком???
PMEmail Poster
Top
Asid Storm
Отправлено: Sep 20 2009, 10:12 AM
Quote Post


  Команда ЭйсВэб
*

Группа: Super moderator
Сообщений: 895
Пользователь №: 39
Регистрация:
27-August 06



CODE
<?
mysql_connect();
mysql_select_db();
$query = mysql_query("SELECT ........ ");
print "<select id='from_db'>";
while($result = mysql_fetch_array($query)){
print "<option value='" . $result['id'] . "'>" . $result['name'] . "</option>";
}
print "</select>";
?>
PMEmail PosterUsers WebsiteICQ
Top
ruitrjiu
Отправлено: Dec 7 2013, 01:59 PM
Quote Post


  Unregistered









Top notch Throughout the style and design staff discussed the area<br><br>with the best downward. Beginning with light, that they chose the Fillista ring rug Chloe Handbags from IKEA $29. 99, impressed just by one more mid-century modern-day antique the Henningsen Artichoke table lamp meant for Poulsen Womens Chloe. Our goal is to update and even make softer the particular middle century appear and prepare it again sought-after. The property provides a timeless house and we needed to Moncler Coats keep wide variety that will becoming on the breathing space. Along with which young lad while in the spouse and children and we were going to maintain it excitement, revealed Turner.<br>
Leading Across the type group dealt with the bedroom
Top notch Across the design group tackled the room
Finally, the appears to be scored increased threshold oooooo
Top

Topic Options Reply to this topicStart new topicStart Poll

 



[ Script Execution time: 0.0287 ]   [ 10 queries used ]   [ GZIP выключен ]