Nieuw lid |
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<TITLE> Nieuwssysteem </TITLE>
<META NAME="Author" CONTENT="Rensjuh">
<META NAME="Description" CONTENT="Nieuwssysteem voor scripts library Sitemasters.be">
</HEAD>
<BODY>
<?PHP
ERROR_REPORTING(E_ALL);
include("includes/config.inc.php");
include("functions/text2ubb.php");
include("classes/class.pagenav.php");
// nieuws.php
// deze zou je bijv. kunnen includen op je index pagina
$sQuery = "SELECT * FROM nieuws ORDER BY id DESC LIMIT 0, ".$max['nieuws'];
$sResult = MySQL_Query($sQuery) or report_mysql("Nieuws ophalen", __FILE__, __LINE__, $sQuery);
echo "<Center>";
while($sRecord = MySQL_Fetch_Assoc($sResult))
{
echo "<!-- Contentbox -->";
echo "<table cellspacing=0 cellpadding=0 class=\"body\">";
echo "<tr><td background=\"images/contentboxTop.gif\">";
echo " <b>".$sRecord['titel']."</b> <align=\"right\"> ".$sRecord['door']." | ".$sRecord['datum']." om ".$sRecord['tijd']."</align><BR>";
echo "</td></tr>";
echo "<tr><td background=\"images/contentboxBack.gif\">";
echo "<table cellspacing=0 cellpadding=5>";
echo "<tr>";
echo "<td valign=\"top\"><img src=\"images/clannewsThumb.gif\" alt=\"\"></td>";
echo "<td valign=\"top\">";
text2ubb($sRecord['text']);
echo "</tr>";
echo "</table>";
echo "</td></tr>";
echo "<tr><td><img src=\"images/contentboxBottom.gif\" alt=\"\" /></td></tr>";
echo "</table>";
echo "<!-- /Contentbox -->";
}
?>
</BODY>
</HTML>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML> <HEAD> <TITLE> Nieuwssysteem </TITLE> <META NAME="Author" CONTENT="Rensjuh"> <META NAME="Description" CONTENT="Nieuwssysteem voor scripts library Sitemasters.be"> </HEAD> <BODY> <?PHP include("includes/config.inc.php"); include("functions/text2ubb.php"); include("classes/class.pagenav.php"); // nieuws.php // deze zou je bijv. kunnen includen op je index pagina $sQuery = "SELECT * FROM nieuws ORDER BY id DESC LIMIT 0, ".$max['nieuws']; $sResult = MySQL_Query($sQuery) or report_mysql ("Nieuws ophalen", __FILE__, __LINE__, $sQuery); { echo "<!-- Contentbox -->"; echo "<table cellspacing=0 cellpadding=0 class=\"body\">"; echo "<tr><td background=\"images/contentboxTop.gif\">"; echo " <b>".$sRecord['titel']."</b> <align=\"right\"> ".$sRecord['door']." | ".$sRecord['datum']." om ".$sRecord['tijd']."</align><BR>"; echo "<tr><td background=\"images/contentboxBack.gif\">"; echo "<table cellspacing=0 cellpadding=5>"; echo "<td valign=\"top\"><img src=\"images/clannewsThumb.gif\" alt=\"\"></td>"; echo "<td valign=\"top\">"; text2ubb($sRecord['text']); echo "<tr><td><img src=\"images/contentboxBottom.gif\" alt=\"\" /></td></tr>"; echo "<!-- /Contentbox -->"; } ?> </BODY> </HTML>
Het gaat om line 26
Ik wil dus een deel van de tekst daar links uitlijnen en een deel rechts.. Hoe moet dat precies?
Ik ben een leek dus... Dit is mijn eerste PHP script
;-)
Groetjes,
stijn.
|