Bekijk de onderstaande video om te zien hoe je onze site als een web app op je startscherm installeert.
Opmerking: Deze functie is mogelijk niet beschikbaar in sommige browsers.
<!-- TinyMCE -->
<script type="text/javascript" src="tiny_mce/tiny_mce.js"></script>
<script type="text/javascript">
***tinyMCE.init({
*** ***mode : "textareas",
*** ***theme : "advanced",
*** ***skin : "o2k7"
***});
</script>
<!-- /TinyMCE -->
<?php
include("administration/bantrace.php");
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>
<?php
include "administration/connect.php"; //mysql db connection here
$id=$_GET['id'];
$gettopic="SELECT * from settings";
$gettopic2=mysql_query($gettopic) or die("Could not load the settings database.");
$gettopic3=mysql_fetch_array($gettopic2);
$site=strip_tags($gettopic3['sitename']);
$site=nl2br($site);
$cop=strip_tags($gettopic3['copyright']);
$cop=nl2br($cop);
print "$site";
?>
</title>
<link rel=stylesheet href="style.css" type="text/css" media=screen>
</head>
<body>
<div id="page">
<div id="header" align="center">
<?php
include "administration/connect.php"; //mysql db connection here
$id=$_GET['id'];
$gettopic="SELECT * from settings";
$gettopic2=mysql_query($gettopic) or die("Could not load the settings database.");
$gettopic3=mysql_fetch_array($gettopic2);
$site=strip_tags($gettopic3['sitename']);
$site=nl2br($site);
$slogan=strip_tags($gettopic3['slogan']);
$slogan=nl2br($slogan);
print "<link rel='stylesheet' href='style.css' type='text/css' media='screen'>";
?>
</div>
<div id="menu" align="center">
<center>
<?php
include "administration/connect.php"; //mysql db connection here
$getthreads="SELECT * from pages where parentid='0'";
$getthreads2=mysql_query($getthreads) or die("There are no pages");
while($getthreads3=mysql_fetch_array($getthreads2))
{
$getthreads3[title]=strip_tags($getthreads3[title]);
$getthreads3[author]=strip_tags($getthreads3[author]);
print "<A href='page.php?id=$getthreads3[id]'>$getthreads3[title]</a>";
}
?>
<a href="contact.php">contact</a>
</center>
</div>
<div id="mainarea">
<div id="content">
<div class="contenttop">
<?php
include "administration/connect.php"; //mysql db connection here
$id=$_GET['id'];
$gettopic="SELECT * from pages where id='$id'";
$gettopic2=mysql_query($gettopic) or die("Could not load the settings database.");
$gettopic3=mysql_fetch_array($gettopic2);
$message=strip_tags($gettopic3['title']);
$message=nl2br($message);
print "<b>$message</b>";
?>
</div>
<div class="contentmid">
<?php
include "administration/connect.php"; //mysql db connection here
$id=$_GET['id'];
$gettopic="SELECT * from pages where id='$id'";
$gettopic2=mysql_query($gettopic) or die("Could not load the settings database.");
$gettopic3=mysql_fetch_array($gettopic2);
$message=strip_tags($gettopic3['content']);
$message=nl2br($message);
print "$message";
?>
</div>
<br>
</div>
<div id="collum">
<div class="top">
<b>Contact Info</b>
</div>
<div class="mid"><img src="thema/test.JPG" width="248" height="311" alt="Test"></div>
<br>
<br>
</div>
</div>
<div id="footer"><center>
***** - copyright 2009 | <a href='administration/'>Admin Panel</a>
</center></div>
</body>
</html>
Je bedoelt als je de site weer bekijkt, of wanneer je de code opnieuw in de editor wilt laden?
Kun je even een voorbeeld online zetten, of de HTML broncode posten (dus wat er uit komt NA het parsen).
$message=strip_tags($gettopic3['content'], '<img>');
Het komt waarschijnlijk omdat je strip_tags over je content heen haalt.
De <img> is alleen maar een tag, dus daar blijft niets van over om het zo maar even te zeggen.
PHP:$message=strip_tags($gettopic3['content'], '<img>');
zou wel moeten werken. Daarnaast is het heel vreemd dat je voor alles wat je weer wilt geven, je connectie-bestand include en opnieuw de query uitvoert, dat kan allemaal ook gewoon 1 keer.
Ja, dat leg ik je net uit. Dat komt omdat je strip_tags er overheen haalt. Ik heb ook werkelijk waar geen flauw idee waarom je dat zou doen.
$message=strip_tags($gettopic3['content']);
$message = $gettopic3[ 'content' ];
We gebruiken essentiële cookies om deze site te laten werken, en optionele cookies om de ervaring te verbeteren.