another parse error (1 viewing) (1) Guest
Favoured: 0
|
|
|
TOPIC: another parse error
|
kmc (User)
Fresh Boarder
Posts: 1
|
|
another parse error 2 Years, 11 Months ago
|
Karma: 0
|
I am getting this parse error
Parse error: syntax error, unexpected $end in /usr/local/4admin/apache/vhosts/site.com/httpdocs/joomla/plugins/content/DirectPHP.php(54) : eval()'d code on line 1
display?ID=
Parse error: syntax error, unexpected $end in /usr/local/4admin/apache/vhosts/site.com/httpdocs/joomla/plugins/content/DirectPHP.php(54) : eval()'d code on line 1
Parse error: syntax error, unexpected $end in /usr/local/4admin/apache/vhosts/site.com/httpdocs/joomla/plugins/content/DirectPHP.php(54) : eval()'d code on line 1
Parse error: syntax error, unexpected $end in /usr/local/4admin/apache/vhosts/site.com/httpdocs/joomla/plugins/content/DirectPHP.php(54) : eval()'d code on line 1
December 31, 1969
I have removed all of my html. When I start my php, my sql statement shows up as text for some reason, as well as my echo statements. By the way, for some reason I have to use print instead of echo, cause if I use echo I get an administrator restricted access error.
Here is my code
| Code: | <?php
// Get a database object
$db = JFactory::getDBO();
$query = "SELECT list.DFirstName, list.DLastName, list.ID, list.eventdate, list.event,
list.event2, list.place_id, list.eventplace_id, list.Picture, places.place_name as eventplace, places.address as eventplaceaddress, places.city as eventplacecity,
places.state as eventplacestate, places.zip as eventplacezip, places.country as eventplacecountry, places_1.place_name as place,
places_1.address as placeaddress, places_1.city as placecity, places_1.state as
placestate, places_1.zip as placezip, places_1.country as placecountry FROM list INNER JOIN places on
list.eventplace_id=places.place_id INNER JOIN places as places_1 on
list.place_id=places_1.place_id where list.eventdate >= Now() -
Interval 1 Day order by list.eventdate desc, list.ID desc";
$result = mysql_query($query)
or die("Couldn't execute query.");
$nrows = mysql_num_rows($result);
for ($i=0;$i<$nrows;$i++)
{
$n = $i +1; //add 1 so that numbers don't start with 0
$row = mysql_fetch_array($result);
extract($row);
?>
<?php print $Picture ?>
obitdisplay?ID=<?php print "$ID" ?><?php print "$DFirstName $DLastName" ?><?php print ":" ?> <?php print date('F j, Y',strtotime($eventdate)); ?>
<?php
if ($place_id > 0 )
print $event2;
?>
<?php
}
?> |
|
|
|
|
|
|
|
Last Edit: 2010/06/02 00:21 By kmc.
|
|
|
The administrator has disabled public write access.
|
|
| |
|
|
|
kmc
|
2010/06/02 00:18
|
| |
|
|
|
kksou
|
2010/06/02 00:40
|
|
|
|
|