Ik krijg in dit script hieronder bij de volgende regel:
<font color='$colorfont'><a href=$Link>$Naam</a> - $omschrijving</font>
de variabele Omschrijving niet in beeld, wat zit hier fout?
Het hele scripts is:
<?php
function SchrijfNaarBestand ($Naam, $Link, $omschrijving) {
$Nieuws = ereg_replace("\:\)", "
", $Nieuws);
$Nieuws = ereg_replace("\:\(", "[img]niet_blij.gif[/img]", $Nieuws);
$Nieuws = ereg_replace("\;\)", "
", $Nieuws);
$Nieuws = ereg_replace("\:o", "
", $Nieuws);
$Nieuws = ereg_replace("\:D", "
", $Nieuws);
$Nieuws = ereg_replace("\:p", "
", $Nieuws);
$bestand = implode("", file("links.txt"));
$HetBestand= "links.txt";
$Open= fopen ($HetBestand, "w+");
if ($Open) {
include ('config.php');
fwrite ($Open, "<table bgcolor='$bgcolor2' width='$width2' height='$height2' cellpadding=4 cellspacing=4 border='$border' bordercolor='#008000'>
<tr>
<td bgcolor='$bgcolor3'>
<font color='$colorfont'><a href=$Link>$Naam</a> - $omschrijving</font>
</td>
</tr>
</table>
$bestand
");
fclose ($Open);
$Geslaagd = true;
}
else {$geslaagd = false;}
return $Geslaagd;
}
?>
<HTML>
<HEAD>
<TITLE>:::: Europlant Holland ::::</TITLE>
<link rel="stylesheet" href="style.css" type="text/css">
<base target="main">
</HEAD>
<BODY>
<div align="center"></div>
<table width="95%" border="0" cellspacing="1" cellpadding="0" bgcolor="#000066" align="center">
<tr>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#000066"><font size="-1" color="#FFFFFF"> <font face="webdings">2</font>Links Admin (Restricted Area)</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<?php
$FunctieAanroep = SchrijfNaarBestand ($array[Naam], $array[Link], $array[$omschrijving]);
if ($FunctieAanroep) {
print ("Uw link is met succes toegevoegd! Klik <a href=links.php>hier</a> om het te bekijken."); }
else { print ("Er is een fout opgetreden"); }
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</BODY>
</HTML>
<font color='$colorfont'><a href=$Link>$Naam</a> - $omschrijving</font>
de variabele Omschrijving niet in beeld, wat zit hier fout?
Het hele scripts is:
<?php
function SchrijfNaarBestand ($Naam, $Link, $omschrijving) {
$Nieuws = ereg_replace("\:\)", "
", $Nieuws); $Nieuws = ereg_replace("\:\(", "[img]niet_blij.gif[/img]", $Nieuws);
$Nieuws = ereg_replace("\;\)", "
", $Nieuws); $Nieuws = ereg_replace("\:o", "
", $Nieuws); $Nieuws = ereg_replace("\:D", "
", $Nieuws); $Nieuws = ereg_replace("\:p", "
", $Nieuws); $bestand = implode("", file("links.txt"));
$HetBestand= "links.txt";
$Open= fopen ($HetBestand, "w+");
if ($Open) {
include ('config.php');
fwrite ($Open, "<table bgcolor='$bgcolor2' width='$width2' height='$height2' cellpadding=4 cellspacing=4 border='$border' bordercolor='#008000'>
<tr>
<td bgcolor='$bgcolor3'>
<font color='$colorfont'><a href=$Link>$Naam</a> - $omschrijving</font>
</td>
</tr>
</table>
$bestand
");
fclose ($Open);
$Geslaagd = true;
}
else {$geslaagd = false;}
return $Geslaagd;
}
?>
<HTML>
<HEAD>
<TITLE>:::: Europlant Holland ::::</TITLE>
<link rel="stylesheet" href="style.css" type="text/css">
<base target="main">
</HEAD>
<BODY>
<div align="center"></div>
<table width="95%" border="0" cellspacing="1" cellpadding="0" bgcolor="#000066" align="center">
<tr>
<td align="center">
<table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td bgcolor="#000066"><font size="-1" color="#FFFFFF"> <font face="webdings">2</font>Links Admin (Restricted Area)</font></td>
</tr>
<tr>
<td bgcolor="#FFFFFF">
<?php
$FunctieAanroep = SchrijfNaarBestand ($array[Naam], $array[Link], $array[$omschrijving]);
if ($FunctieAanroep) {
print ("Uw link is met succes toegevoegd! Klik <a href=links.php>hier</a> om het te bekijken."); }
else { print ("Er is een fout opgetreden"); }
?>
</td>
</tr>
</table>
</td>
</tr>
</table>
</BODY>
</HTML>