/    Sign up×
Community /Pin to ProfileBookmark

Include error …

I have got a main php file which includes variious file

Main.php

[code=php]
<?php
$a =0;
if ($_GET[‘a’]){

$a = $_GET[a];
}
?>
<html>
<head>
<title> Front Office Administrative Page </title>
<style = “text/css”>
th {font-family:verdana;font-size:25px;background:#8470FF;text-align:center;word-spacing:0.5em;
letter-spacing:0.25em}

</style>
</head>
<body>
<table CELLPADDING = 3>

<tr>
</tr>
<tr>
<TD></TD>
<td width = “100”></td>
<TD>
<th ROWSPAN = 2 >Front Office Management </th>
</TD>
</tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></tr>
<tr></<tr>
<tr style = “height:10px”>
<td width = “150”>
<?php include (‘include/FR_MENU.php’); ?>
</td>
<td with = “400”>
<table>
<td>
[B][SIZE=”4″]<?php
if ($a == 1){
include (‘Booking.php’);
};
if ($a == 5) {
include (‘CL_ADMIN.php’);
}[/SIZE][/B] ?>
</td>
</table>
</td>
</tr>
</table>
<?php
?>

[/code]

Other file

FR_MENU.php

[code=php]
<?php
?>
<html>
<head>
<!— The Front Office Menu –>
<style = “text/css”>
div#links span {display:none}
a {font-family:verdana;font:14px;display:block;margin:0.10,0.10,0.10,0.10}
a:hover {background:#EEE0E5}

</style>
<!— Sub Menu Displaying —>
<script>
function CL_BK(arg1)
{

self.location = ‘FR_OFF.php?$a=’arg1;
alert (self.location);

}
</script>
</head>
<body>

<div style = ‘background:#B0C4DE’>
<br>

<a href = “FR_OFF.php?a=1” Title = “Client Booking for service” onClick = “CL_BK(1)” >Booking </a><br>
<a href = “FR_OFF.php?a=2” Title = “All Goods brought into the company” >Inward </a><br>
<a href = “#”>OutWard </a><br>
<a href = “#”>Report </a><br>
<a href = “FR_OFF.php?a=5” Title = “Manage Client Details” onClickl = “CL_BK(5)” >Client Admin </a><br>
<a href = “#”>Logout </a><br>
</div>
</body>
</html>

[/code]

CL_ADMIN.php

[code=php]
<?php
echo “Client Administration “;
?>
[/code]

Booking.php

[code=php]
<?php
echo “Booking”
?>
[/code]

When I click on the links I.E show warning message in the status bar.
When you click on the icon on the status bar it give following

[COLOR=”Red”]Line:44
char:49
Error : Expected “;”
Code 0
url [url]http://localhost/ticket/FR_OFF.php[/url][/COLOR]

I am half way through a project ,

to post a comment
PHP

1 Comments(s)

Copy linkTweet thisAlerts:
@tracknutJan 01.2009 — You still have the same issue I brought up this morning here ... http://www.webdeveloper.com/forum/showthread.php?t=198661

Dave
×

Success!

Help @arpit_vavadia spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 6.18,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @nearjob,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,

tipper: @meenaratha,
tipped: article
amount: 1000 SATS,
)...