Need help figuring out error
Posted: Tue Apr 24, 2007 12:58 am
feyd | Please use
Thanks,
Everett
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
I keep getting errors on my page and can not seem to figure out the reason.
The error im getting is:
Parse error: parse error, unexpected T_ECHO in index.php on line 11
Ive gone through and commented out parts to see if I can get around the error but every time a new error.
It's like nothing on this page will work. Could it be an issue with the php versions or the permissions?
Here is my code:Code: Select all
<?php
include_once('db_fns.php');
include_once('header.php');
$handle = db_connect();
$pages_sql = 'select * from pages order by code';
$pages_result = $handle->query($pages_sql);
print_r($db_connection)
echo '<table border="0" width="400">';
while ($pages = $pages_result->fetch_assoc());
{
$story_sql = "select * from stories
where page = '{$pages['code']}'
and published is not null
order by published desc";
$story_result = $handle->query($story_sql);
if ($story_result->num_rows)
{
$story = $story_result->fetch_assoc();
echo "<tr>
<td>
<h2>{$pages['description']}</h2>
<p>{$story['headline']}</p>
<p align='right' class='morelink'>
<a href='page.php?page={$pages['code']}'>
Read more {$pages['code']} ...
</a>
</p>
</td>
<td width='100'>";
if ($story['picture'])
{
echo '<img src="resize_image.php?image=';
echo urlencode($story[picture]);
echo '&max_width=80&max_height=60" />';
}
echo '</td></tr>';
}
}
echo '</table>';
include_once('footer.php');
?>Everett
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]