hallo ik heb script systeem gemaakt dat weten jullie wel maar ik kan geen script openen chek maar http://amhix.no-ip.info/pchawk/v2/script%20systeem/scripts.php

dit is het script

<?php
include("style.css");
include("config.php");
echo"<p>";
$select = "SELECT * FROM script";
$query = mysql_query($select);
$aantal = mysql_num_rows($query);

echo "Er bevinden zich al $aantal scripts in de database.<p>";
?>
Klik <a href="voegtoe.php">hier</a> om een script toe te voegen.<p>
<table width="100%" border="0">
<tr>
<td width="25%" bgcolor="#f2f2f2">Titel:</td>
<td width="25%" bgcolor="#f2f2f2">Categorie:</td>
<td width="25%" bgcolor="#f2f2f2"> Door:</td>
<td width="25%" bgcolor="#f2f2f2">Datum:</td>
</tr>
</table>
<?


$select ="SELECT * FROM script order by 'id' desc limit 40";
$sql = mysql_query($select);
while ($row = mysql_fetch_array($sql)) {
?>
<table width="100%" border="0" bordercolor="#CCCCCC">
<tr>
<td width="25%" bgcolor="#FFFFFF"><img src="script.gif"> <?php echo "<a href=\"script.php?id=$row[id]\">$row[titel]</a>"; ?></td>
<td width="25%" bgcolor="#FFFFFF"><?php echo "<b>$row[cat]</b>"; ?></td>
<td width="25%" bgcolor="#FFFFFF"><?php echo "$row[auteur]"; ?></td>
<td width="25%" bgcolor="#FFFFFF"><?php echo "$row[datum]"; ?></td>
</tr>
</table>
<?
}
?>

ik kan et niet vinder hoor iemand hulp.
oke nu heb ik in de mysql tabel effe gedit nu krijg ik het wel te zien dus het is iets met de connectie bij dit bestand:
-----------------------

<?php
include("style.css");
include("config.php");

$day = date("j");

$month = date("m");

$year = date("Y");

$space = "&nbsp;";



$month = str_replace("01", "Januari", $month);

$month = str_replace("02", "Februari", $month);

$month = str_replace("03", "Maart", $month);

$month = str_replace("04", "April", $month);

$month = str_replace("05", "Mei", $month);

$month = str_replace("06", "Juni", $month);

$month = str_replace("07", "Juli", $month);

$month = str_replace("08", "Augustus", $month);

$month = str_replace("09", "September", $month);

$month = str_replace("10", "Oktober", $month);

$month = str_replace("11", "November", $month);

$month = str_replace("12", "December", $month);



$time = date("H:i:s");

$datum = $day.$space.$month.$space.$year;


if ($_POST) {

if ($_POST['titel'] == '')
{
echo "Error! Titel niet ingevuld.";
}
elseif ($_POST['auteur'] == '')
{
echo "Error! Naam niet ingevuld.";
}
elseif ($_POST['email'] == '')
{
echo "Error! Email niet ingevuld.";
}
elseif ($_POST['uitleg'] == '')
{
echo "Error! Uitleg niet ingevuld.";
}
elseif ($_POST['code'] == '')
{
echo "Error! Code niet ingevuld.";
}

else {

$sql = "INSERT INTO script (titel, cat, auteur, email, datum, ip, uitleg, code)
VALUES ('".$titel."', '".$cat."', '".$auteur."', '".$email."', '".$datum."', '".$ip."', '".addslashes($_POST['uitleg'])."', '".$code."')";
mysql_query($sql) or die ("fout in query");


echo "Script is succesvol toegevoegd.<p>";
echo "<a href=\"scripts.php\">Ga naar de index</a>";

}
}
else {
?>

<form action="voegtoe.php" method="post">
<b>Titel:</b><br>
<input type="text" name="titel">
<br>
<b>Categorie:</b><br>
<select name="cat">
<option>Kies je Categorie</option>
<option>--------------------</option>
<option value="HTML">HTML</option>
<option value="PHP">PHP</option>
<option value="PHP &amp; MySQL">PHP &amp; MySQL</option>
<option value="MySQL">MySQL</option>
<option value="Javascript">Javascript</option>
<option value="CSS">CSS</option>
<option value="Overige">Overige</option>
</select>
<br>
<b>Auteur:</b><br>
<input type="text" name="auteur">
<br>
<b>E-mail:</b><br>
<input type="text" name="email">
<br>
<br>
<b>Uitleg:</b>
<p>
<textarea name="uitleg" cols="90" rows="10" id="uitleg"></textarea>
<br>
<br><b>Code:</b><p>
<textarea name="code" cols="90" rows="10" id="code"></textarea>
<p><input type="submit" name="Submit" value="Toevoegen">
</form>

<?php }
?>


-------------------------


aub help me
oke nu heb ik in de mysql tabel effe gedit nu krijg ik het wel te zien dus het is iets met de connectie bij dit bestand:
-----------------------

<?php
include("style.css");
include("config.php");

$day = date("j");

$month = date("m");

$year = date("Y");

$space = "&nbsp;";



$month = str_replace("01", "Januari", $month);

$month = str_replace("02", "Februari", $month);

$month = str_replace("03", "Maart", $month);

$month = str_replace("04", "April", $month);

$month = str_replace("05", "Mei", $month);

$month = str_replace("06", "Juni", $month);

$month = str_replace("07", "Juli", $month);

$month = str_replace("08", "Augustus", $month);

$month = str_replace("09", "September", $month);

$month = str_replace("10", "Oktober", $month);

$month = str_replace("11", "November", $month);

$month = str_replace("12", "December", $month);



$time = date("H:i:s");

$datum = $day.$space.$month.$space.$year;


if ($_POST) {

if ($_POST['titel'] == '')
{
echo "Error! Titel niet ingevuld.";
}
elseif ($_POST['auteur'] == '')
{
echo "Error! Naam niet ingevuld.";
}
elseif ($_POST['email'] == '')
{
echo "Error! Email niet ingevuld.";
}
elseif ($_POST['uitleg'] == '')
{
echo "Error! Uitleg niet ingevuld.";
}
elseif ($_POST['code'] == '')
{
echo "Error! Code niet ingevuld.";
}

else {

$sql = "INSERT INTO script (titel, cat, auteur, email, datum, ip, uitleg, code)
VALUES ('".$titel."', '".$cat."', '".$auteur."', '".$email."', '".$datum."', '".$ip."', '".addslashes($_POST['uitleg'])."', '".$code."')";
mysql_query($sql) or die ("fout in query");


echo "Script is succesvol toegevoegd.<p>";
echo "<a href=\"scripts.php\">Ga naar de index</a>";

}
}
else {
?>

<form action="voegtoe.php" method="post">
<b>Titel:</b><br>
<input type="text" name="titel">
<br>
<b>Categorie:</b><br>
<select name="cat">
<option>Kies je Categorie</option>
<option>--------------------</option>
<option value="HTML">HTML</option>
<option value="PHP">PHP</option>
<option value="PHP &amp; MySQL">PHP &amp; MySQL</option>
<option value="MySQL">MySQL</option>
<option value="Javascript">Javascript</option>
<option value="CSS">CSS</option>
<option value="Overige">Overige</option>
</select>
<br>
<b>Auteur:</b><br>
<input type="text" name="auteur">
<br>
<b>E-mail:</b><br>
<input type="text" name="email">
<br>
<br>
<b>Uitleg:</b>
<p>
<textarea name="uitleg" cols="90" rows="10" id="uitleg"></textarea>
<br>
<br><b>Code:</b><p>
<textarea name="code" cols="90" rows="10" id="code"></textarea>
<p><input type="submit" name="Submit" value="Toevoegen">
</form>

<?php }
?>


-------------------------


aub help me
oke nu heb ik in de mysql tabel effe gedit nu krijg ik het wel te zien dus het is iets met de connectie bij dit bestand:
-----------------------

<?php
include("style.css");
include("config.php");

$day = date("j");

$month = date("m");

$year = date("Y");

$space = "&nbsp;";



$month = str_replace("01", "Januari", $month);

$month = str_replace("02", "Februari", $month);

$month = str_replace("03", "Maart", $month);

$month = str_replace("04", "April", $month);

$month = str_replace("05", "Mei", $month);

$month = str_replace("06", "Juni", $month);

$month = str_replace("07", "Juli", $month);

$month = str_replace("08", "Augustus", $month);

$month = str_replace("09", "September", $month);

$month = str_replace("10", "Oktober", $month);

$month = str_replace("11", "November", $month);

$month = str_replace("12", "December", $month);



$time = date("H:i:s");

$datum = $day.$space.$month.$space.$year;


if ($_POST) {

if ($_POST['titel'] == '')
{
echo "Error! Titel niet ingevuld.";
}
elseif ($_POST['auteur'] == '')
{
echo "Error! Naam niet ingevuld.";
}
elseif ($_POST['email'] == '')
{
echo "Error! Email niet ingevuld.";
}
elseif ($_POST['uitleg'] == '')
{
echo "Error! Uitleg niet ingevuld.";
}
elseif ($_POST['code'] == '')
{
echo "Error! Code niet ingevuld.";
}

else {

$sql = "INSERT INTO script (titel, cat, auteur, email, datum, ip, uitleg, code)
VALUES ('".$titel."', '".$cat."', '".$auteur."', '".$email."', '".$datum."', '".$ip."', '".addslashes($_POST['uitleg'])."', '".$code."')";
mysql_query($sql) or die ("fout in query");


echo "Script is succesvol toegevoegd.<p>";
echo "<a href=\"scripts.php\">Ga naar de index</a>";

}
}
else {
?>

<form action="voegtoe.php" method="post">
<b>Titel:</b><br>
<input type="text" name="titel">
<br>
<b>Categorie:</b><br>
<select name="cat">
<option>Kies je Categorie</option>
<option>--------------------</option>
<option value="HTML">HTML</option>
<option value="PHP">PHP</option>
<option value="PHP &amp; MySQL">PHP &amp; MySQL</option>
<option value="MySQL">MySQL</option>
<option value="Javascript">Javascript</option>
<option value="CSS">CSS</option>
<option value="Overige">Overige</option>
</select>
<br>
<b>Auteur:</b><br>
<input type="text" name="auteur">
<br>
<b>E-mail:</b><br>
<input type="text" name="email">
<br>
<br>
<b>Uitleg:</b>
<p>
<textarea name="uitleg" cols="90" rows="10" id="uitleg"></textarea>
<br>
<br><b>Code:</b><p>
<textarea name="code" cols="90" rows="10" id="code"></textarea>
<p><input type="submit" name="Submit" value="Toevoegen">
</form>

<?php }
?>


-------------------------


aub help me
en ook als ik het script bekijk krijg ik deze fout Notice: Use of undefined constant code - assumed 'code' in c:\program files\easyphp1-7\www\pchawk\v2\script systeem\script.php on line 48 maar ik kan niks vinden in script.php
watte mijn bericht word boven 4 keer verdubbeld?

Reageren