Current location: Hot Scripts Forums » Programming Languages » PHP » subdreamer latest articals issue


subdreamer latest articals issue

Reply
  #1 (permalink)  
Old 02-06-07, 05:11 AM
txt3rob txt3rob is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
subdreamer latest articals issue

PHP Code:

echo '<head>

    <title>Untitled-1</title>
    <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
    <style type="text/css">
    <!--
    .style5 {
    font-size: 12px;
    color: #FFFFFF;
    font-weight: bold;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    }
    .style8 {color: #FFFFFF; font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 11px;}
    -->
    </style>
    <style type="text/css">
    body {
    background-color: #FFFFFF;
    }
    </style>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <!-- ImageReady Slices (Untitled-1) -->

    <table width="100%" height="53" border="0" cellpadding="0" cellspacing="0" id="Table_01">
        <tr>
            <td width="9" height="22"><img src="http://sub.outallnite.co.uk/images/green_table_01.gif" width="9" height="22" alt=""></td>

            <td width="100%" height="22" background="http://sub.outallnite.co.uk/images/dg_bg.gif" bgcolor="009933"><span class="style5">News Archive</span></td>

            <td width="13" height="22"><img src="http://sub.outallnite.co.uk/images/green_table_03.gif" width="11" height="22" alt=""></td>

            <td width="17">&nbsp;</td>
        </tr>

        <tr>
            <td width="9" background="http://sub.outallnite.co.uk/images/lg_bg.gif" bgcolor="00CC33">&nbsp;</td>

            <td width="100%" background="http://sub.outallnite.co.uk/images/lg_bg.gif" bgcolor="00CC33" class="style8">
                <p><a href="' 
RewriteLink('index.php?categoryid=' $article['categoryid'] . '&p2_articleid=' $article['articleid']) . '">' $language['read_more'] . '</a><br /></p>
            </td>

            <td width="13" background="http://sub.outallnite.co.uk/images/lg_bg.gif">&nbsp;</td>

            <td width="17"><img src="http://sub.outallnite.co.uk/images/spacer.gif" width="15" height="5"></td>
        </tr>

        <tr>
            <td width="9" height="13"><img src="http://sub.outallnite.co.uk/images/green_table_07.gif" width="9" height="13" alt=""></td>

            <td width="100%" height="13" background="http://sub.outallnite.co.uk/images/lg_bg.gif" bgcolor="00CC33"></td>

            <td width="13" height="13"><img src="http://sub.outallnite.co.uk/images/green_table_09.gif" width="11" height="13" alt=""></td>

            <td width="17" height="13"></td>
        </tr>
    </table> '
;
            }
          }
          else
          {
            echo (
'<head>
    <title>Untitled-1</title>
    <meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
    <style type="text/css">
    <!--
    .style5 {
    font-size: 12px;
    color: #FFFFFF;
    font-weight: bold;
    font-family: "Trebuchet MS", Verdana, sans-serif;
    }
    .style8 {color: #FFFFFF; font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 11px;}
    -->
    </style>
    <style type="text/css">
    body {
    background-color: #FFFFFF;
    }
    </style>
</head>

<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
    <!-- ImageReady Slices (Untitled-1) -->

    <table width="100%" height="53" border="0" cellpadding="0" cellspacing="0" id="Table_01">
        <tr>
            <td width="9" height="22"><img src="http://sub.outallnite.co.uk/images/green_table_01.gif" width="9" height="22" alt=""></td>

            <td width="100%" height="22" background="http://sub.outallnite.co.uk/images/dg_bg.gif" bgcolor="009933"><span class="style5">News Archive</span></td>

            <td width="13" height="22"><img src="http://sub.outallnite.co.uk/images/green_table_03.gif" width="11" height="22" alt=""></td>

            <td width="17">&nbsp;</td>
        </tr>

        <tr>
            <td width="9" background="http://sub.outallnite.co.uk/images/lg_bg.gif" bgcolor="00CC33">&nbsp;</td>

            <td width="100%" background="http://sub.outallnite.co.uk/images/lg_bg.gif" bgcolor="00CC33" class="style8">
                <p><a href="' 
RewriteLink('index.php?categoryid=' $article['categoryid'] . '&p2_articleid=' $article['articleid']) . '">' $boldtitlestart $article['title'] . $boldtitleend '</a>' $categoryname $subtitle '<br />' $printlink $emaillink'</p>
            </td>

            <td width="13" background="http://sub.outallnite.co.uk/images/lg_bg.gif">&nbsp;</td>

            <td width="17"><img src="http://sub.outallnite.co.uk/images/spacer.gif" width="15" height="5"></td>
        </tr>

        <tr>
            <td width="9" height="13"><img src="http://sub.outallnite.co.uk/images/green_table_07.gif" width="9" height="13" alt=""></td>

            <td width="100%" height="13" background="http://sub.outallnite.co.uk/images/lg_bg.gif" bgcolor="00CC33"></td>

            <td width="13" height="13"><img src="http://sub.outallnite.co.uk/images/green_table_09.gif" width="11" height="13" alt=""></td>

            <td width="17" height="13"></td>
        </tr>
    </table>'
); 
bottom line im getting error

Code:
Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/sub/public_html/plugins/p3_latestnews/latestnews.php on line 467
line 467 is the very end of this code can some one please help me fix this issue?
cheers
__________________
N00b Coder! One of those guys who collects bits of code and puts them together and carnt really code for himself
Reply With Quote
  #2 (permalink)  
Old 02-06-07, 05:20 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
Almost at the bottom, there should be a dot between $emaillink and '</p>.

Code:
<p><a href="' . RewriteLink('index.php?categoryid=' . $article['categoryid'] . '&p2_articleid=' . $article['articleid']) . '">' . $boldtitlestart . $article['title'] . $boldtitleend . '</a>' . $categoryname . $subtitle . '<br />' . $printlink . $emaillink .'</p>
Reply With Quote
  #3 (permalink)  
Old 02-06-07, 05:44 AM
txt3rob txt3rob is offline
Newbie Coder
 
Join Date: Sep 2006
Posts: 98
Thanks: 0
Thanked 0 Times in 0 Posts
thanks once again nico
__________________
N00b Coder! One of those guys who collects bits of code and puts them together and carnt really code for himself
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Interesting DataGrid Issue LittlBUGer ASP.NET 11 10-16-06 10:39 AM
Odd Z-Indexing Issue im running to with IE nova912 CSS 1 09-16-06 03:21 PM
limit DELETE FROM mysql command to old entries - issue. clantron PHP 8 03-17-06 02:10 PM
Issue Tracking and Task management SlackeR Script Requests 8 10-05-05 04:29 PM
Language issue in from property, Please Help AskAR ASP 0 08-10-05 06:40 AM


All times are GMT -5. The time now is 05:56 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.