$search[]="/\[B](.*)\[\/B]/siU"; $replace[]="\\1"; $search[]="/\[i](.*)\[\/i]/siU"; $replace[]="\\1"; $search[]="/([^]_a-z0-9-=\"'\/])((https?|ftp):\/\/|www\.)([^ \r\n\(\)\*\^\$!`\"'\|\[\]\{\};<>]*)/si"; $replace[]="\\1\\2\\4"; $search[]="/\[url]([^\"]*)\[\/url\]/siU"; $replace[]="\\1"; $search[]="/\[url=(['\"]?)([^\"']*)\\1](.*)\[\/url\]/siU"; $replace[]="\\2"; echo parse($text); function parse($text) { global $search,$replace; reset($search); reset($replace); $text = preg_replace($search,$replace,$text); return $text; } require ("contact.php3"); //--- DB AUSWÄHLEN ------------------------------------------- $news = mysql_query("select * from news order by id DESC"); while ( $newsanzeigen= mysql_fetch_array( $news ) ) { ?>
print "". $newsanzeigen[time] .""; ?> | print "". $newsanzeigen[titel] .""; ?> |
$text = $newsanzeigen[text]; echo $text; ?> |
} ?>