Nieuw lid |
|
Oke , ik heb het dus geprobeerd he maar ik krijg dus een lege pagina . ik Had die vorige oplossing dus al geprobeerd . daarmee dat ik het dus helemaal niet snapte , kun je me nu uitleggen wat er eigenlijk verkerd gaat? hier even heel die pagina die dan fout geeft en blank toont
<?php session_start(); ?>
<html>
<head>
<title>horeca</title>
</head>
<body>
<style>
<?PHp include 'style.css' ?>
</style>
<h3>Horecazaak</h3>
<a href='index.php'>Klik hier om terug te gaan naar de horecazaak lijst </a><br>
<?php
include 'config.php';
if (!isset($_GET['id']) OR !is_numeric ($_GET['id']))
{
$_GET['id'] = 1;
}
else
{
$_GET['id'] = intval ($_GET['id']);
}
?>
<?php
$sSqlGetScript = 'SELECT * FROM script_scripts WHERE script_id = '.$_GET['id'];
$rSqlGetScript = mysql_query ($sSqlGetScript, $rDatabaseConnection);
if (mysql_num_rows ($rSqlGetScript) == 0)
{
echo 'Dit script bestaat niet.';
}
else
{
?>
<a href='reply.php?id=<?php echo $_GET["id"] ?>'>Klik hier om op deze horecazaak te reageren</a><br>
<br>
<?php
$aFetchRecords = mysql_fetch_assoc ($rSqlGetScript);
?>
<table width="263" border='0'>
<tr>
<td width="125"><b>horecazaak naam:</b></td>
<td width="128"><?php echo htmlspecialchars (stripslashes ($aFetchRecords['script_naam'])) ?></td>
</tr>
<tr>
<td><b>ligging:</b></td>
<td><?php echo htmlspecialchars (stripslashes ($aFetchRecords['script_auteur'])) ?>
</td></tr>
</table>
<hr>
<fieldset>
<legend><b>Omschrijving</b></legend>
<?php echo nl2br (htmlspecialchars (stripslashes ($aFetchRecords['script_uitleg']))) ?>
</fieldset><p>
<fieldset><legend><b>Code</b></legend>
<?php<?php
echo '<a href="'.$aFetchRecords['script_code'].'">'.$aFetchRecords['script_code'].'</a>';
?>
</fieldset><br>
<?PHP
$sSqlGetRatingIP = 'SELECT rating_ip, script_id FROM script_rating WHERE script_id = '.$_GET['id'];
$rSqlGetRatingIP = mysql_query ($sSqlGetRatingIP);
while ($aFetchRecordz = mysql_fetch_assoc ($rSqlGetRatingIP))
{
if ($aFetchRecordz['rating_ip'] == $_SERVER['REMOTE_ADDR'])
{
$bGestemd = true;
}
}
if (!isset ($bGestemd))
{
$_SESSION['vanaf'] = true;
?>
<fieldset><legend><b>Rating</b></legend>
<form method='post' action='vote.php?id=<?php echo $_GET['id'] ?>'>
<input type='submit' name='1' value='Zeer Slecht'>
<input type='submit' name='2' value='Slecht'>
<input type='submit' name='3' value='Matig'>
<input type='submit' name='4' value='Goed'>
<input type='submit' name='5' value='Zeer Goed'>
</form></fieldset>
<?php
}
$sSqlGetReplies = 'SELECT * FROM script_replies WHERE script_id = '.$_GET['id'].' ORDER BY reply_id DESC';
$rSqlGetReplies = mysql_query ($sSqlGetReplies, $rDatabaseConnection);
if (mysql_num_rows ($rSqlGetReplies) == 0)
{
echo 'Er zijn geen replies op zaak.';
}
else
{
echo '<table border="0"cellspacing="0" cellpadding="11">';
echo '<tr><td><b>Reacties</b></td><td><b>Door</b></td><td></td></tr>';
while ($aFetchRecords2 = mysql_fetch_assoc ($rSqlGetReplies))
{
echo '<tr><td><a href="bekijk_reply.php?id='.$aFetchRecords2['reply_id'].'">Re: '.$aFetchRecords['script_naam'].'</a></td>
<td>'.$aFetchRecords2['reply_auteur'].'</td>
<td>';
}
echo '</table>';
}
}
?>
</body>
</html>
<html> <head> <title>horeca</title> </head> <body> <style> <?PHp include 'style.css' ?> </style> <h3>Horecazaak</h3> <a href='index.php'>Klik hier om terug te gaan naar de horecazaak lijst </a><br> <?php include 'config.php'; { $_GET['id'] = 1; } else { $_GET['id'] = intval ($_GET['id']); } ?> <?php $sSqlGetScript = 'SELECT * FROM script_scripts WHERE script_id = '.$_GET['id']; $rSqlGetScript = mysql_query ($sSqlGetScript, $rDatabaseConnection); { echo 'Dit script bestaat niet.'; } else { ?> <a href='reply.php?id= <?php echo $_GET["id"] ?>'>Klik hier om op deze horecazaak te reageren</a><br> <br> <?php ?> <table width="263" border='0'> <tr> <td width="125"><b>horecazaak naam:</b></td> </tr> <tr> <td><b>ligging:</b></td> </td></tr> </table> <hr> <fieldset> <legend><b>Omschrijving</b></legend> </fieldset><p> <fieldset><legend><b>Code</b></legend> <?php<?php echo '<a href="'.$aFetchRecords['script_code'].'">'.$aFetchRecords['script_code'].'</a>'; ?> </fieldset><br> <?PHP $sSqlGetRatingIP = 'SELECT rating_ip, script_id FROM script_rating WHERE script_id = '.$_GET['id']; { if ($aFetchRecordz['rating_ip'] == $_SERVER['REMOTE_ADDR']) { $bGestemd = true; } } { $_SESSION['vanaf'] = true; ?> <fieldset><legend><b>Rating</b></legend> <form method='post' action='vote.php?id= <?php echo $_GET['id'] ?>'> <input type='submit' name='1' value='Zeer Slecht'> <input type='submit' name='2' value='Slecht'> <input type='submit' name='3' value='Matig'> <input type='submit' name='4' value='Goed'> <input type='submit' name='5' value='Zeer Goed'> </form></fieldset> <?php } $sSqlGetReplies = 'SELECT * FROM script_replies WHERE script_id = '.$_GET['id'].' ORDER BY reply_id DESC'; $rSqlGetReplies = mysql_query ($sSqlGetReplies, $rDatabaseConnection); { echo 'Er zijn geen replies op zaak.'; } else { echo '<table border="0"cellspacing="0" cellpadding="11">'; echo '<tr><td><b>Reacties</b></td><td><b>Door</b></td><td></td></tr>'; { echo '<tr><td><a href="bekijk_reply.php?id='.$aFetchRecords2['reply_id'].'">Re: '.$aFetchRecords['script_naam'].'</a></td> <td>'.$aFetchRecords2['reply_auteur'].'</td> <td>'; } } } ?> </body> </html>
alvast dank je voor de vorige reactie he
laat maar ik heb het juist gevonden .
dank je dank je
dank je
dank je
, ik heb iets bijgeleerd dank je , heb nog vragen hoor ;)
|