473,695 Members | 2,777 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Tabelle mit Dropdowns

Hallo miteinander, kann mir bitte jemand erklären warum ich mit diesem
code keine dropdowns erzeugen kann:

Gruppe A<br>

<form name="form1">
<table>

<?

mysql_connect(" localhost",
"root","");

mysql_select_db ("em04");

$abfrage = "SELECT Home, Away FROM gruppea";

$ergebnis = mysql_query($ab frage);

while($row = mysql_fetch_obj ect($ergebnis))
{
echo "<tr><td>", $row->Home,"</td><td>",$row->Away,"</td><td>
<select name="menu1">
<option>test</option>
<option>unnamed 1</option>
<option>unnamed 2</option>
</select>
</td>
</tr>";

}

?>

</table>
</form>

Besten dank Dominic
Jul 17 '05 #1
1 1408
dominic wrote:
Hallo miteinander, kann mir bitte jemand erklären warum ich mit diesem
code keine dropdowns erzeugen kann:

Gruppe A<br>

<form name="form1">
<table>

<?

mysql_connect(" localhost",
"root","");

mysql_select_db ("em04");

$abfrage = "SELECT Home, Away FROM gruppea";

$ergebnis = mysql_query($ab frage);

while($row = mysql_fetch_obj ect($ergebnis))
{
echo "<tr><td>", $row->Home,"</td><td>",$row->Away,"</td><td>
<select name="menu1">
<option>test</option>
<option>unnamed 1</option>
<option>unnamed 2</option>
</select>
</td>
</tr>";

}

?>

</table>
</form>

Besten dank Dominic


You would get more answers if you would write in english.

this should work:

while($row = mysql_fetch_obj ect($ergebnis))
{
echo "<tr><td>". $row['Home']."</td><td>".$row['Away']."</td><td>";
echo "<select name=\"menu1\"> \n";
echo "<option>te st</option>\n";
echo "<option>unname d1</option>\n";
echo "<option>unname d2</option>\n";
echo "</select>\n";
echo "</td>\n";
echo "</tr>\n";
}
?>
Otherwise we need more info.

Greetings, Urs
Jul 17 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3964
by: Lt Müller | last post by:
hallo, zwecks der Übersichtlichkeit bei der Ausgabe von DB Daten in eine Tabelle würde ich gerne jede zweite Zeile andersfarbig markieren. Die Daten werden über eine while Schleife ausgegeben. Danke für Tipps Lt Müller
1
3015
by: Pito81x | last post by:
Ciao a tutto il news Ho un problema: in access ho una tabella collegata ad un'altra tabelle di un server Oracle (fin qui tutto ok) solo che quando da VB apro la mia tabella Access esso mi chiede la user name e password per effettuare il collegamento alla tabella Oracle..... Qualcuno mi sa dire come posso fare per passargli la pwd??? grazie
0
3587
by: Pohl | last post by:
Hallo Zusammen, in der Access Datenbank mit Produktionsdaten werden tägliche Auswertungen benötigt. Zur Zeit gibt es einen Tagesauswertung als Aceess Bericht. Eine zukünftige Anforderung besteht darin, die zusammengefassten Tages-Leistungen (1 Datensatz) als neue Zeile in ein vorhandenenenes Excel-Arbeitsblatt automatisiert (VBA) zu exportieren. Die Möglichkeit "DoCmd.TransferSpreadsheet acExport" ist da nicht geeignet, da ich nicht...
1
5219
by: amir | last post by:
Hallo Ihr Experten, ich möchte aus einem Formular aus, eine bereits vorhandene Laufendenummer aus einer Tabelle.spalte auslese und dazu noch eine 1 addiere und dann das Ergebnis in ein Textfeld auf diesem Formular eingeben! Danach werden weitere Daten von dem User eingegeben und dann werden alle diese Daten (die neue Laufendenummer auch) in der gleichen Tabelle als neuer Datensatz gespeichert. Ich denke an:
0
4282
by: Francesco | last post by:
Ciao a tutti... Premetto che non sono molto pratico di MySql (anche se ho già fatto qualche piccola applicazione che sfrutta questo DBMS) Ho un problema da risolvere molto importante. Ho un DBMS MySql dove sono presenti solo i dati (le tabelle). In un DataBase Access 2000 ho creato le maschere per la gestione e le varie stampe per l'analisi. Al Database Access devo collegare le tabelle presenti nel Db MySql. Il tutto gira su Pc con...
3
1580
by: Damon | last post by:
I am working on a site in which I would like to have two dropdowns that will allow a user to navigate through the administrative pages of the site. The first would allow the user to choose the particular site that they would like to edit. The second would allow the user to select which admin screen they would like to edit. The second dropdown needs to be populated based on the selection in the first one. I want to encapsulate these...
1
1462
by: Andy | last post by:
What I want to do is to populate multiple dropdowns when editing. Presumably... a) I should use a DataReader so that I can get each ResultSet for each dropdown control, and that should cut down round trips to the server. b) I should populate these dropdowns in the DataGrid_EditCommand? What I am having problems with is actually referencing the dropdowns on the template. e.g. I have a dropdown called drpAccessLevels, but I cannot find this...
2
4207
by: Marchetto | last post by:
Ciao a tutti, ho trovato molte indicazioni riguardo al seguente problema, ma nessuna ha sortito gli effetti sperati. Ho un db Access con alcune tabelle collegate (file di testo). Da access riesco ad aprire queste tabelle e ad eseguire qualsiais query. Da Visual Studio 2005, provando a creare una nuova connessione dati che punta al file mdb citato, appena tento di aprire una tabella, o di eseguire una nuova query o una già salvata e...
0
965
by: sbart | last post by:
I am programing in asp.net vb using AjaxToolkit cascadingDropDown. I do not have access to AjaxToolkit cascading dropdown event handlers. I have a series of dropdowns. The selection from one of the dropdowns (call it ddA) triggers the visibility of some of the other dropdowns. Problem is that f the user makes one selection from ddA, makes selections from additonal dropdowns, then goes back and changes the selection in ddA, the selections...
0
8647
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9004
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8864
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8835
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6504
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4590
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3023
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2285
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
1986
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.