Hallo,
Ausgabe von Daten aus einer mysql Datenbank bekomme ich nicht formatiert. Die Ausgabe sieht bei immer so aus:
· Stahlbau · NRW · Frankreich· Köln· 12345
· Holz Thomesch · NRW · Deutschland· Bonn· 46459
· Holz Meier · NRW · Deutschland· Rees· 46459
· Thomeschky · NRW · Deutschland· Rees· 46469
Der entsprechende Code so:
# Ausgabe der Suchergebnisse
###############################
echo "<strong><big>·</big></strong> <a
href=\"modules.php?name=$module_name&op=content&tid=$tid\">\t $title </a>";
echo "<strong><big>·</big></strong> <a
href=\"modules.php?name=$module_name&op=content&tid=$tid\"> <align=\"center\">$area </a>";
echo "<strong><big>·</big></strong> <a
href=\"modules.php?name=$module_name&op=content&tid=$tid\"> <align=\"center\">$state</a>";
echo "<strong><big>·</big></strong> <a
href=\"modules.php?name=$module_name&op=content&tid=$tid\"> <align=\"right\">$city</a>";
echo "<strong><big>·</big></strong> <a
href=\"modules.php?name=$module_name&op=content&tid=$tid\"> <align=\"right\">$zip</a><br>";
##############
# Ausgabe ende
Ich habe schon versucht mit \t einen Tabulator zu setzen, bekomme es aber nicht hin. Alternativ wäre eine Ausgabe in eine Tabelle nicht schlecht.
Wer kann mir einen Ansatzpunkt nennen
Gruß Stefan
Ausgabe von Daten aus einer mysql Datenbank bekomme ich nicht formatiert. Die Ausgabe sieht bei immer so aus:
· Stahlbau · NRW · Frankreich· Köln· 12345
· Holz Thomesch · NRW · Deutschland· Bonn· 46459
· Holz Meier · NRW · Deutschland· Rees· 46459
· Thomeschky · NRW · Deutschland· Rees· 46469
Der entsprechende Code so:
# Ausgabe der Suchergebnisse
###############################
echo "<strong><big>·</big></strong> <a
href=\"modules.php?name=$module_name&op=content&tid=$tid\">\t $title </a>";
echo "<strong><big>·</big></strong> <a
href=\"modules.php?name=$module_name&op=content&tid=$tid\"> <align=\"center\">$area </a>";
echo "<strong><big>·</big></strong> <a
href=\"modules.php?name=$module_name&op=content&tid=$tid\"> <align=\"center\">$state</a>";
echo "<strong><big>·</big></strong> <a
href=\"modules.php?name=$module_name&op=content&tid=$tid\"> <align=\"right\">$city</a>";
echo "<strong><big>·</big></strong> <a
href=\"modules.php?name=$module_name&op=content&tid=$tid\"> <align=\"right\">$zip</a><br>";
##############
# Ausgabe ende
Ich habe schon versucht mit \t einen Tabulator zu setzen, bekomme es aber nicht hin. Alternativ wäre eine Ausgabe in eine Tabelle nicht schlecht.
Wer kann mir einen Ansatzpunkt nennen
Gruß Stefan