Links script

Pagina: 1
Acties:
  • 47 views sinds 30-01-2008

  • radem205
  • Registratie: Juni 2002
  • Laatst online: 02-02-2022
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("\:\)", "Afbeeldingslocatie: http://lach.gif", $Nieuws);
$Nieuws = ereg_replace("\:\(", "[img]niet_blij.gif[/img]", $Nieuws);
$Nieuws = ereg_replace("\;\)", "Afbeeldingslocatie: http://knipoog.gif", $Nieuws);
$Nieuws = ereg_replace("\:o", "Afbeeldingslocatie: http://verbaasd.gif", $Nieuws);
$Nieuws = ereg_replace("\:D", "Afbeeldingslocatie: http://blij.gif", $Nieuws);
$Nieuws = ereg_replace("\:p", "Afbeeldingslocatie: http://tong.gif", $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>

  • D2k
  • Registratie: Januari 2001
  • Laatst online: 31-08 10:19

D2k

debuggen kan je mooi zelf doen
strooi eens met echo's
zie de P&W faq

Doet iets met Cloud (MS/IBM)


Dit topic is gesloten.