escaPe
Dabei seit: 10.09.2007
Ort: <? include("home.htm") ?>
Alter: 112
Geschlecht:
|
Verfasst Fr 09.04.2010 15:25
Titel
|
|
|
Sulak10 hat geschrieben: | Ich stell mich glaub ich grade ein bisschen zu dumm an
Tut mir leid.
Kannst du mir das vllt mal in meinen Quellcode einbauen?
Ich weiß nicht wirklich, wie und wo ich das einbauen soll
Ich bekomm dann die ganze Zeit nen Fehler angezeigt. |
Probiers mal so:
Code: | <table>
<?php
$heimtel ="";
$heimfax ="";
$mobil ="";
$con = mysql_connect("localhost","********","*********");
if (!$con)
{
die('Could not connect: ' . mysql_error());
}
mysql_select_db("signaturen", $con);
$result = mysql_query("SELECT * FROM geruest
WHERE Email='$_POST[Email]'");
while($row = mysql_fetch_array($result))
{
if ($row['HeimTel'] != "")
{ $heimtel = "<td>" . $row['HeimTel'] . "</td>"; }
if ($row['HeimFax'] != "")
{ $heimfax = "<td>" . $row['HeimFax'] . "</td>"; }
if ($row['Mobil'] != "")
{ $mobil = "<td>" . $row['Mobil'] . "</td>"; }
echo "<tr>$heimtel $heimfax $mobil</tr>";
}
?>
</table> |
|
|