PHP expert |
|
<?php
$query = mysql_query('SELECT * FROM site_content');
$rows = mysql_fetch_assoc($query);
$message = preg_replace("#\[LINK=(.*?)\](.*?)\[/LINK\]#si","<a href=\"\\1\" target=\"_blank\">\\2</a>", nl2br($rows['home']));
echo $message;
<?php $message = preg_replace("#\[LINK=(.*?)\](.*?)\[/LINK\]#si","<a href=\"\\1\" target=\"_blank\">\\2</a>", nl2br($rows['home']));
@hierboven: wat is er dan niet duidelijk? ;x |