Follow along with the video below to see how to install our site as a web app on your home screen.
Anmerkung: This feature currently requires accessing the site using the built-in Safari browser.
Als Array?
PHP:$link_n[] = "<a href=\"http://".$link."\">".$link."</a>";
<table>
<tr>
<td>Titel</td>
<td>Datum</td>
</tr>
<tr>
<td colspan="2">HIER DIE LINKS</td>
</tr>
</table>
Hey br3doxx,
oder vielleicht so ?
PHP:<?php $test = "test.de,test.com,test.net"; $links = explode(",", $test); $link_n = ""; foreach($links as $link) { $link_n .= "<a href=\"http://".$link."\">".$link."</a><br />\n"; } echo $link_n; ?>
MfG OloX
Ja, so wollte ich es, geht aber nicht, da nur der letzte Wert angezeigt wird.
Mit dem Code:Mit dem Code werden die Links einfach untereinnander ausgegeben
<?php
$test = "test.de,test.com,test.net";
$links = explode(",", $test);
$link_n = "";
foreach($links as $link)
{
$link_n .= "<a href=\"http://".$link."\">".$link."</a><br />\n";
}
echo $link_n;
?>
<a href="http://test.net">test.net</a>
<table>
<tr>
<td>Titel</td>
<td>Datum</td>
</tr>
<tr>
<td colspan="2">HIER DIE LINKS</td>
</tr>
</table>
<a href="http://test.de">test.de</a><br />
<a href="http://test.com">test.com</a><br />
<a href="http://test.net">test.net</a><br />
<?php
$test = "test.de,test.com,test.net";
$links = explode(",", $test);
$link_n = "";
foreach($links as $link)
{
$link_n .= "<tr>\n<td><a href=\"http://".$link."\">".$link."</a></td>\n<td> </td></tr>\n";
}
?>
<table border="1" cellpadding="4" cellspacing="0">
<tr>
<th scope="col">Titel</th>
<th scope="col">Datum</th>
</tr>
<?php echo $link_n; ?>
</table>
<table>
<?php
$test = "test.de,test.com,test.net";
$links = explode(",", $test);
$link_n = "";
foreach($links as $link)
{
$link_n = "<a href=\"http://".$link."\">".$link."</a><br />\n";
echo"
<tr>
<td>Titel</td>
<td>Datum</td>
</tr>
<tr>
<td colspan='2'>$link_n</td>
</tr>";
}
?>
</table>