473,503 Members | 1,654 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($abfrage);

while($row = mysql_fetch_object($ergebnis))
{
echo "<tr><td>",$row->Home,"</td><td>",$row->Away,"</td><td>
<select name="menu1">
<option>test</option>
<option>unnamed1</option>
<option>unnamed2</option>
</select>
</td>
</tr>";

}

?>

</table>
</form>

Besten dank Dominic
Jul 17 '05 #1
1 1391
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($abfrage);

while($row = mysql_fetch_object($ergebnis))
{
echo "<tr><td>",$row->Home,"</td><td>",$row->Away,"</td><td>
<select name="menu1">
<option>test</option>
<option>unnamed1</option>
<option>unnamed2</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_object($ergebnis))
{
echo "<tr><td>".$row['Home']."</td><td>".$row['Away']."</td><td>";
echo "<select name=\"menu1\">\n";
echo "<option>test</option>\n";
echo "<option>unnamed1</option>\n";
echo "<option>unnamed2</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
3953
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. ...
1
3004
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...
0
3582
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...
1
5205
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...
0
4256
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...
3
1567
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...
1
1456
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...
2
4200
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...
0
955
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...
0
7319
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...
1
6979
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...
0
5570
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,...
1
4998
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...
0
4666
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3149
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1498
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 ...
1
730
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
373
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...

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.