Guten Abend,
In meiner Tabelle erscheint alles richtig ausser der mail-adresse.
Die Spalte EMAIL bleibt leider leer.
mysql> select * from Lieferanten;
+----+-----------+------------------------+
| ID | Name | EMAIL |
+----+-----------+------------------------+
| 1 | Dxxxxx | xxx@xxx|
| 2 | Mxxxx | xxx@xxx
+----+-----------+------------------------+
mysql> describe Lieferanten;
+-------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+----------------+
| ID | int(11) | NO | PRI | | auto_increment |
| Name | varchar(255) | YES | | | |
| EMAIL | varchar(255) | YES | | | |
+-------+--------------+------+-----+---------+----------------+
In meiner Tabelle erscheint alles richtig ausser der mail-adresse.
Die Spalte EMAIL bleibt leider leer.
PHP-Code:
<?php
$tlist = @mysql_query ("SELECT Artikelname, Name EMAIL
FROM toner, Lieferanten WHERE AID=Lieferanten ID");
if (!$tlist) {
exit ('<p>Fehler bei der Abfrage: ' . mysql_error() . '</p>');
}
?>
<table border=2>
<tr>
<td>Artikelname</td>
<td>Name</td>
<td>EMAIL</td>
</tr>
<?php
while ($row = mysql_fetch_array($tlist))
{ echo "<tr>";
echo "<td>". $row ['Artikelname'] ."</td>";
echo "<td>". $row ['Name']."</td>";
echo "<td>". $row ['EMAIL'] ."</td>";
echo "</tr> \n";
}
echo "</table>";
+----+-----------+------------------------+
| ID | Name | EMAIL |
+----+-----------+------------------------+
| 1 | Dxxxxx | xxx@xxx|
| 2 | Mxxxx | xxx@xxx
+----+-----------+------------------------+
mysql> describe Lieferanten;
+-------+--------------+------+-----+---------+----------------+
| Field | Type | Null | Key | Default | Extra |
+-------+--------------+------+-----+---------+----------------+
| ID | int(11) | NO | PRI | | auto_increment |
| Name | varchar(255) | YES | | | |
| EMAIL | varchar(255) | YES | | | |
+-------+--------------+------+-----+---------+----------------+
Kommentar