473,513 Members | 2,366 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Parse error: parse error, unexpected $end

127 New Member
Below is the code i create when i click on the job title hyperlink, it will display the job information where call from database.
But the error message is:
Parse error: parse error, unexpected $end in C:\Apache2\Apache2\htdocs\jobsearch_result.php on line 103
where line 103 is nothing, my last line is 101


[PHP]<?php
session_start();
ob_start();

// check if id is passed to this routine
if (isset($_GET['id'])) {
// if yes: remove harmful tags and save the passed id in variable $id
$id = strip_tags($_GET['id']);

//connect to server and select database

$conn=mysql_connect("localhost", "root", "") or die (mysql_error());
mysql_select_db("ums e-job portal", $conn) or die(mysql_error());



// construct SQL statement
$sql = mysql_query("SELECT * FROM job WHERE job_ID='$id'");

$rows=mysql_fetch_array($sql);





?>

<div align='center'><font face='Verdana' size='3'><strong><? echo $rows['companyName'];?></strong></font></div>
<?
while($rows=mysql_fetch_array($sql)){
?>
[/PHP]
[HTML]
<form action=jobsearch_result.php?id=$id method=POST>
<table class=PageTable border="0" cellpadding="2" cellspacing="2" width="500" align="center">
<tr>
<td class=PageTitle width="233" colspan="2" align="center" ><font size="2" face="Verdana">Job Information</font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">Job Title</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['jobTitle'];?></font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">Job Type</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['jobType'];?></font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">Job Category</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['jobCategory'];?></font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">Job Position</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['jobPosition'];?></font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">Job Location</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['jobLocation'];?></font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">Minimal Requirement</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['mRequirement'];?></font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">Job Description</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['jobDescription'];?></font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">Date Posted</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['datePosted'];?></font></td>
</tr>
<tr>
<td class=PageTitle width="233" colspan="2" align="center" ><font size="2" face="Verdana"><strong>Contact Information</strong></font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">Contact Name</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['contactName'];?></font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">E-mail</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['emailAdd'];?></font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">Contact Number</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['contactNum'];?></font></td>
</tr>
<tr>
<td class=PageTable width="63" align="right" ><font size="2" face="Verdana">Contact Address</font></td>
<td class=PageTable width="170" align="center"><font size="2" face="Verdana"><? echo $rows['contactAdd'];?></font></td>
</tr>
<tr>
<td colspan="2" align="right" class=PageTable><a href="mailto:<? echo $rows['emailAdd']; ?>">
<input type='submit' name='Apply' value='Apply'></a></td>
</tr>
</table>
</form>[/HTML]
[PHP]
<?

}


ob_end_flush();
?>[/PHP]
Mar 2 '07 #1
3 1404
ronverdonk
4,258 Recognized Expert Specialist
This error means that you have not properly (either one or combination):

(a) closed a single or double quoted string
(b) closed a curly braces {} block
(c) forgot a semi column

somewhere in your code.

Ronald :cool:
Mar 2 '07 #2
bb nicole
127 New Member
This error means that you have not properly (either one or combination):

(a) closed a single or double quoted string
(b) closed a curly braces {} block
(c) forgot a semi column

somewhere in your code.

Ronald :cool:
Thank again, ronald...
I find where is my problem..
Thanks.. :)
Mar 2 '07 #3
ronverdonk
4,258 Recognized Expert Specialist
You are welcome.

Ronald :cool:
Mar 2 '07 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
51379
by: sky2070 | last post by:
Parse error: parse error, unexpected T_OBJECT_OPERATOR, expecting ')' in c:\inetpub\wwwroot\session.php on line 19 can anyone tell me what is wrong with this code??? <? // Define the Session...
1
2273
by: Janwillem Borleffs | last post by:
Q: I'm getting an unexpected $ or $end parse/syntax error, what's causing this? A: This is caused when an expression is started with an opening brace, but the closing brace is omitted. ...
6
19010
by: Ehartwig | last post by:
I recently created a script for user verification, solved my emailing issues, and then re-created the script in order to work well with the new PHP 5 that I installed on my server. After...
8
46162
by: Wescotte | last post by:
The error message Parse error: syntax error, unexpected $end in FILE on line X is one I run into frequently and I know the cause is I missed an ending quote. Is there an easy way to determine...
4
2187
mikeinspain
by: mikeinspain | last post by:
Keep getting this error! Parse error: syntax error, unexpected $end in /home/9144/domains/cbweb.co.uk/html/faq_finance.php on line 139 PHP Below.. Script was working 1 minute and copied the...
1
6820
by: soidariti | last post by:
database error - parse error, unexpected $, expecting kEND AddUserAuthorisationToUsers.rb migration file 1. class AddUserAuthorisationToUsers < ActiveRecord::Migration 2. def self.up ...
5
10011
praclarush
by: praclarush | last post by:
I've just started php, and this is a class assignment, but my question is I’m getting this error PHP Parse error: syntax error, unexpected T_IF, expecting T_VARIABLE or '$' in...
9
4022
by: ajd335 | last post by:
Hi all... I am getting an error Parse error: syntax error, unexpected $end in http:/..... on line 117...(117 is the EOF).. can you plz help me out..I have checked out for the < , > ,{ ,} etc.......
2
3207
by: Lawrence Krubner | last post by:
Imagine a template system that works by getting a file, as a string, and then putting it through eval(), something like this: $formAsString = $controller->command("readFileAndReturnString",...
9
3516
akohistani
by: akohistani | last post by:
I am having Parse error problem with my newly purchased Php upload script I have uploaded the script and I get the error below Parse error: syntax error, unexpected $end in URL/functions.php on...
0
7267
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7553
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7120
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5697
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5100
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4754
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3247
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3235
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
809
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.