473,568 Members | 2,964 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 1404
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
3959
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
3011
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???...
0
3586
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...
1
5210
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...
0
4271
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...
3
1569
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...
1
1460
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...
2
4205
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...
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...
0
7693
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...
0
7604
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language...
0
7916
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8117
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...
1
7660
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...
0
7962
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...
0
6275
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
1
2101
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
0
932
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...

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.