Stort bogstav efter punktum
Hejsa, jeg har dette her script, til min kommentar system, men jeg vil gerne have at den laver stort bogstave efter hver punktum i både nyhed, og kommentarer.<?php
session_start();
if (isset($_SESSION["s_navn"]))$id = $_SESSION[s_id];
?>
<html>
<head>
<meta http-equiv="Content-Language" content="da">
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
<title>VHCamp #4 - Lan event i Aalborg området d. 8 - 9 december</title>
</head>
<body bgcolor="#000000" link="#FFFFFF" vlink="#FFFFFF" alink="#FFFFFF" text="#FFFFFF">
<p>
</p>
<table border="0" cellpadding="0" cellspacing="0" width="1062" height="927" id="table6">
<!-- MSTableType="layout" -->
<tr>
<td colspan="7" valign="top" height="150">
<img border="0" src="testlogo.jpg" width="1062" height="150"></td>
</tr>
<tr>
<td valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF" background="bg.jpg" rowspan="2">
<!-- MSCellType="NavBody" -->
<p align="right">
<img border="0" src="hovedmenu.jpg" width="150" height="30"></p>
<table border="0" width="100%" id="table7" cellspacing="0" cellpadding="0">
<tr>
<td><font color="#FFFFFF" face="Tahoma" size="2">
<a href="index.php"><span style="text-decoration: none">Forside</span></a></font></td>
</tr>
<tr>
<td><font color="#FFFFFF" face="Tahoma" size="2">
<a href="historie.php"><span style="text-decoration: none">
Historie</span></a></font></td>
</tr>
<tr>
<td><font color="#FFFFFF" face="Tahoma" size="2">
<a href="information.php"><span style="text-decoration: none">
Information</span></a></font></td>
</tr>
<tr>
<td><font color="#FFFFFF" face="Tahoma" size="2">
<a href="tilmelding.php"><span style="text-decoration: none">
Tilmelding</span></a></font>
</td>
</tr>
<tr>
<td><font color="#FFFFFF" face="Tahoma" size="2">
<a href="regler.php"><span style="text-decoration: none">Regler</span></a></font></td>
</tr>
<tr>
<td><font color="#FFFFFF" face="Tahoma" size="2">
<a href="kontakt.php"><span style="text-decoration: none">
Kontakt</span></a></font></td>
</tr>
</table>
<p align="right"> </td>
<td> </td>
<td valign="top" colspan="3">
<!-- MSCellType="ContentBody" -->
<img border="0" src="nyheder.jpg"></td>
<td> </td>
<td valign="top" height="30">
<img border="0" src="sponsorer.jpg" width="154" height="30"></td>
</tr>
<tr>
<td> </td>
<td valign="top" bgcolor="#800080" background="bg.jpg" rowspan="6" colspan="3">
<!-- MSCellType="ContentBody" -->
<?php
include("sql/db_ind.inc");
if (isset($_GET['id'])) {
$id = $_GET['id'];
$nyhed = mysql_query("SELECT * FROM news2 WHERE id = '$id'") or die (mysql_error());
$r = mysql_fetch_array($nyhed);
$antal2 = mysql_num_rows($nyhed);
//Printer valgte nyhed ud
echo "<b><u>Overskrift:</u></b><br>".$r['overkrift'];
echo "<br><b><u>Nyhed:</u></b><br>".$r['news'];
echo "<br><br>Skrevet af <i>".$r['af']." Den ".$r['dato'];
echo "</i>";
}
$mysql = mysql_query("SELECT * FROM nyhedskom WHERE nyhedsid = '$id' ORDER BY id ASC");
while ($row = mysql_fetch_array($mysql)) {
$id2 = $row[id];
?>
<? echo "<hr><b>Kommentar:</b><br>".$row['indhold']; ?>
<? echo "<br><b>Forfatter:</b>".$row[brugernavn]; ?>
<? echo "<br><b>Dato:</b>".$row['dato']; ?>
<?php
session_start();
if (isset($_SESSION['s_rang']) && $_SESSION['s_rang'] == "admin")
{
?>
<? echo "<br><a href=sletkom.php?id=$id2>(Slet kommentar)</a>"; ?>
<?
}
}
?>
<?php
session_start();
if (isset($_SESSION["s_navn"]))
{
$id = $_GET[id];
$brugernavn = $_SESSION[s_navn];
echo "<form action=nyhedkommentar.php?id=$id method=post>
<b>Svar på nyheden<br></b>
<textarea name=indhold cols=50 rows=10></textarea>
<b><br>Forfatter:<br></b><input type='text' size='51' name='brugernavn' readonly value='$_SESSION[s_navn]'><br>
<input type=submit value=Opret>
</p>
</form>";
echo "<center>";
echo '<table border="1" width="43%" id="table1" cellspacing="0" cellpadding="0" height="131">
<tr>
<td>
<table border="0" width="100%" id="table3" cellspacing="0" cellpadding="0">
<tr>
<td>
<p> <b>Praktiske informationer</b> </td>
</tr>
</table>
<table border="0" width="127%" id="table2" cellspacing="0" cellpadding="0">
<tr>
<td><b>Type</b></td>
<td><b>Kode</b></td>
<td width="256"><b>Resultat</b></td>
</tr>
<tr>
<td>Fed</td>
<td><b>Tekst</b></td>
<td width="256"><b>Tekst</b></td>
</tr>
<tr>
<td>Kursiv</td>
<td><i>Tekst</i></td>
<td width="256"><i>Tekst</i></td>
</tr>
<tr>
<td>Understreg</td>
<td><u>Tekst</u></td>
<td width="256"><u>Tekst</u></td>
</tr>
<tr>
<td>Link</td>
<td><url>vhcamp.dk</url></td>
<td width="270"><a href="http://vhcamp.dk">
<font color="#FFFFFF">Vhcamp.dk</font></a></td>
</tr>
</table>
</td>
</tr>
</table>';
}
else
{
echo "<br><br>Login for at skrive kommentar";
}
?>
<td height="284"> </td>
<td valign="top" background="bg.jpg" rowspan="4">
<a href="pe.php">
<img border="0" src="pe.jpg"></a><table border="0" width="100%" id="table8" cellspacing="0" cellpadding="0">
<tr>
<td><a href="tra.php"><img border="0" src="tra.jpg"></a></td>
</tr>
<tr>
<td><a href="proffdata.php"><img border="0" src="proffdata.jpg"></a></td>
</tr>
</table>
</td>
</tr>
<tr>
<td></td>
<td></td>
<td height="5"></td>
</tr>
<tr>
<td valign="top" bordercolor="#FFFFFF" bgcolor="#FFFFFF" background="bg.jpg" rowspan="3">
<!-- MSCellType="NavBody" -->
<img border="0" src="Image17.jpg" width="150" height="30"><p>
<!--webbot bot="HTMLMarkup" startspan --><?php
session_start();
?>
<html>
<head>
</head>
<body bgcolor="#EFEDED">
<?php
session_start();
if (isset($_SESSION["s_navn"]))
{
$id = $_SESSION[s_id];
?>
<? echo "<a href='minprofil.php?id=$id'><span style='text-decoration: none'>Min Profil</span></a>
<br><a href='mineoplysninger.php?id=$id'><span style='text-decoration: none'>Mine Oplysninger</span></a>
<br><a href='minklan.php?id=$id'><span style='text-decoration: none'>Mit Hold</span></a>
<br><a href=logud.php><span style='text-decoration: none'>Logud</span></a>"; ?>
<?
}
?>
<font size="2" face="Tahoma"><?php
session_start();
if (isset($_SESSION['s_rang']) && $_SESSION['s_rang'] == "admin")
{
?>
<? echo "<br><br><a href='add_news.php'><span style='text-decoration: none'>Tilføj nyhed</span></a>"; ?>
<? echo "<br><a href='del_news.php'><span style='text-decoration: none'>Slet nyhed</span></a>"; ?>
<?
}
?><!--webbot bot="HTMLMarkup" endspan --></td>
<td> </td>
<td height="30"> </td>
</tr>
<tr>
<td> </td>
<td height="144"> </td>
</tr>
<tr>
<td></td>
<td></td>
<td height="5"></td>
</tr>
<tr>
<td> </td>
<td> </td>
<td> </td>
<td height="156"> </td>
</tr>
<tr>
<td width="150"> </td>
<td width="9"> </td>
<td width="368"> </td>
<td width="13"> </td>
<td width="358"> </td>
<td width="10"> </td>
<td height="123" width="154"> </td>
</tr>
</table>
</body>
</html>
På forhånd tak