No the divs are on the right spot i have double checked. The style problem is caused by the include ‘…/paginas/vraag.php’;
[php]echo “
[/php]
No the divs are on the right spot i have double checked. The style problem is caused by the include ‘…/paginas/vraag.php’;
[php]echo “
Did you try my suggestion for styling? Because it worked perfectly for me running it off your site.
Yes I tried but I am getting this error : Parse error: syntax error, unexpected $end in /home/klant00105/domains/kwikweb.nl/public_html/paginas/indexbody.php on line 133
Post the entire HTML again that you have…
[php]
<?php require_once("../.common/.init.php"); $style = '../.common/default.css'; $ip = $_SERVER['REMOTE_ADDR']; if ($ip != $status_ip1 and $ip != $status_ip2 and $ip != $status_ip3) {$status = 'sorry';} $db = new PDO(DBASE); $result = $db->query("SELECT * FROM Teksten WHERE soort='adres';"); foreach($result as $row) { extract($row); $adres = $tekst;} $telefoon = 'Vragen? Bel ons! (dinsdag t/m vrijdag tussen 10 en 16 uur)'; $nwsbrief = "../nieuwsbrief/print.php"; $omschrijvingRW = <<< OMSCHR Bij de Ruilwinkel helpen we elkaar met spullen en diensten. De waardering gaat in punten, geld speelt geen rol. U kunt punten verdienen door andere deelnemers te helpen, met spullen die u zelf over hebt, of door een klusje op te knappen. Met de verdiende punten kunt u zelf spullen afnemen of hulp vragen bij dingen waar u zelf minder goed in bent. Dankzij de punten is ruilen met gelijk oversteken niet nodig! OMSCHR; $setServTitel = 'setServTitel'; function setServTitel() { if(!isset($_GET['service'])) $_GET['service'] = "Spulaanbod"; switch($_GET['service']) { case "Spulaanbod": return "There’s not 133 lines, is the error still at line 133?
No at line 132
[php]<?php
require_once("…/.common/.init.php");
$style = ‘…/.common/default.css’;
$ip = $_SERVER[‘REMOTE_ADDR’];
if ($ip != $status_ip1 and $ip != $status_ip2 and $ip != $status_ip3) {$status = ‘sorry’;}
$db = new PDO(DBASE);
$result = $db->query(“SELECT * FROM Teksten WHERE soort=‘adres’;”);
foreach($result as $row)
{ extract($row); $adres = $tekst;}
$telefoon = ‘Vragen? Bel ons! (dinsdag t/m vrijdag tussen 10 en 16 uur)’;
$nwsbrief = “…/nieuwsbrief/print.php”;
$omschrijvingRW = <<< OMSCHR
Bij de Ruilwinkel helpen we elkaar met spullen en diensten.
De waardering gaat in punten, geld speelt geen rol.
U kunt punten verdienen door andere deelnemers te helpen, met spullen die u zelf over hebt, of door een klusje op te knappen.
Met de verdiende punten kunt u zelf spullen afnemen of hulp vragen bij dingen waar u zelf minder goed in bent.
Dankzij de punten is ruilen met gelijk oversteken niet nodig!
OMSCHR;
$setServTitel = ‘setServTitel’;
function setServTitel() {
if(!isset($_GET['service']))
$_GET['service'] = "Spulaanbod";
switch($_GET['service'])
{
case "Spulaanbod": return "<h2>Spullen Aangeboden</h2>";break;
case "Spulgevraagd": return "<h2>Spullen Gevraagd</h2>";break;
case "Hulpaanbod": return "<h2>Hulp Aangeboden</h2>";break;
case "Hulpgevraagd": return "<h2>Hulp Gevraagd</h2>";break;
case "Leenaanbod": return "<h2>Te Leen Aangeboden</h2>";break;
case "Info": return "<h2>Info</h2>";break;
}
}
//$setService = ‘setService’;
function setService() {
switch($_GET['service'])
{
case "Spulaanbod": include '../paginas/nwspul.php';break;
case "Spulgevraagd": include'../paginas/vraag.php';break;
case "Leenaanbod": include '../paginas/uitleen.php';break;
}
}
$menu = <<< MENU
MENU;echo <<< BODY
Test<center><div id='container' style= 'text-align: left; border:2px solid #000000;width: 1010px; height: 785px;'>
<div id='header' style='margin-left: 0px; margin-top: 0px; width: 1010px; height: 85px; position: absolute; background-color: #4B259C;'>
<a href='bericht.php' target='nwspul' style='position: absolute; margin-left: 700px; margin-top: 12px; '><img src='../images/brief.gif' border='0' title='mail ons! Klik hier voor contact-formulier' /></a>
<img style='position: absolute; margin-left: 5px; margin-top: 3px; width: 40px; height: 40px;' src='../.common/logo.gif' title='$omschrijvingRW' border='0'>
<a href = '../paginas/indexbody.php' target = '_top' ><img style='position: absolute; margin-left: 45px; margin-top: 8px; width: 140px; height: 36px' src='../.common/ruilwinkel.gif' title='$omschrijvingRW' border='0'/></a>
<h6 style='position: absolute; margin-left: 45px; margin-top: 54px;' title = '$telefoon'>010-2151657</h6>
<a href='$nwsbrief' target='_blank'><img style='position: absolute; margin-left: 850px; margin-top: 10px; width: 135px; height: 60px;' src='../.common/nieuws.gif' title='laatste nieuws' border='0'/></a>
{$setServTitel()}
echo “
{$setServTitel()}
The problem was [php]echo “
The last must be echo “”;
The problem of the undefined $statuscode I also have solved by googling; If you use includes in a function you have to add this line before your include statement:
[php]extract($GLOBALS);[/php]
found information here : http://stackoverflow.com/questions/10121211/php-use-include-inside-function
That’s awesome glad you got that solved, are you still have the other issue?
no everything solved for now. Thank you for your help though.