Code: Select all
<?php
include ("variables18.php");
$pageNumber = 1;
pageNameANDlinks();
and so on...Code: Select all
<?php
$pageTitle;
$pageLinks;
$message1 = "Hello 1";
$message2 = "Hello 2";
$message3 = "Hello 3";
$message4 = "Hello 4";
$message5 = "Hello 5";
$message6 = "Hello 6";
$message7 = "Hello 7";
$message8 = "Hello 8";
$message9 = "Hello 9";
$message10 = "Hello 10";
$sideMessage1 = "Hello 1";
$sideMessage2 = "Hello 2";
$sideMessage3 = "Hello 3";
$sideMessage4 = "Hello 4";
$sideMessage5 = "Hello 5";
$sideMessage6 = "Hello 6";
$sideMessage7 = "Hello 7";
$sideMessage8 = "Hello 8";
$sideMessage9 = "Hello 9";
$sideMessage10 = "Hello 10";
function pageNameANDlinks() {
if (pageNumber == 1) {
$pageTitle = "Home";
$pageLinks = '<b>Home</b><br>
<a href="theParish.php">The Parish</a><br>
<a href="bulletin.php">Bulletin</a><br>
<a href="calendar.php">Calendar</a><br>
<a href="pictures.php">Pictures</a><br>
<a href="ministries.php">Ministries</a><br>
<a href="history.php">History</a><br>
<a href="contacts.php">Contacts</a>'
}
elseif (pageNumber == 2) {
$pageTitle = "The Parish";
$pageLinks = '<a href="home.php">Home</a><br>
<b>The Parish</b><br>
<a href="bulletin.php">Bulletin</a><br>
<a href="calendar.php">Calendar</a><br>
<a href="pictures.php">Pictures</a><br>
<a href="ministries.php">Ministries</a><br>
<a href="history.php">History</a><br>
<a href="contacts.php">Contacts</a>'
}
elseif (pageNumber == 3) {
$pageTitle = "Bulletin";
$pageLinks = '<a href="home.php">Home</a><br>
<a href="theParish.php">The Parish</a><br>
<b>Bulletin</b><br>
<a href="calendar.php">Calendar</a><br>
<a href="pictures.php">Pictures</a><br>
<a href="ministries.php">Ministries</a><br>
<a href="history.php">History</a><br>
<a href="contacts.php">Contacts</a>'
}
elseif (pageNumber == 4) {
$pageTitle = "Calendar";
$pageLinks = '<a href="home.php">Home</a><br>
<a href="theParish.php">The Parish</a><br>
<a href="bulletin.php">Bulletin</a><br>
<b>Calendar</b><br>
<a href="pictures.php">Pictures</a><br>
<a href="ministries.php">Ministries</a><br>
<a href="history.php">History</a><br>
<a href="contacts.php">Contacts</a>'
}
elseif (pageNumber == 5) {
$pageTitle = "Pictures";
$pageLinks = '<a href="home.php">Home</a><br>
<a href="theParish.php">The Parish</a><br>
<a href="bulletin.php">Bulletin</a><br>
<a href="calendar.php">Calendar</a><br>
<b>Pictures</b><br>
<a href="ministries.php">Ministries</a><br>
<a href="history.php">History</a><br>
<a href="contacts.php">Contacts</a>'
}
elseif (pageNumber == 6) {
$pageTitle = "Ministries";
$pageLinks = '<a href="home.php">Home</a><br>
<a href="theParish.php">The Parish</a><br>
<a href="bulletin.php">Bulletin</a><br>
<a href="calendar.php">Calendar</a><br>
<a href="pictures.php">Pictures</a><br>
<b>Ministries</b><br>
<a href="history.php">History</a><br>
<a href="contacts.php">Contacts</a>'
}
elseif (pageNumber == 7) {
$pageTitle = "History";
$pageLinks = '<a href="home.php">Home</a><br>
<a href="theParish.php">The Parish</a><br>
<a href="bulletin.php">Bulletin</a><br>
<a href="calendar.php">Calendar</a><br>
<a href="pictures.php">Pictures</a><br>
<a href="ministries.php">Ministries</a><br>
<b>History</b><br>
<a href="contacts.php">Contacts</a>'
}
else {
$pageTitle = "Contacts";
$pageLinks = '<a href="home.php">Home</a><br>
<a href="theParish.php">The Parish</a><br>
<a href="bulletin.php">Bulletin</a><br>
<a href="calendar.php">Calendar</a><br>
<a href="pictures.php">Pictures</a><br>
<a href="ministries.php">Ministries</a><br>
<a href="history.php">History</a><br>
<b>Contacts</b>'
}
endif;
}
?>im editing this in zend development environment and its giving me these errors...
Parsing Error: H:\Zend\Apache2\htdocs\Website\variables18.php line 39 - parse error, unexpected '}'
Debug Error: H:\Zend\Apache2\htdocs\Website\test18.php line 4 - Call to undefined function pageNameANDlinks()
would the second error be caused by the first error?
whats up with the unexpected curly brace?
before i put in all the curly braces in the conditional statements it gave me an error of an unexpected ELSEIF which was the first elseif...
any clues? and thanks in advance