Thread: Yet more help
View Single Post
  #1  
Old 03-15-2003, 05:38 PM
Serge's Avatar
Serge Serge is offline
 
Join Date: Jan 2002
Location: The Matrix
Posts: 115
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default Yet more help

Ok I need more help so far I have this script/page:

PHP Code:
<?php
include ("sql.php");

$id $_REQUEST['id'];

$result mysql_query("SELECT articleid, title, email, author, body, commentid FROM article WHERE articleid = $id") or
        die (
mysql_error());
        
while (
$row mysql_fetch_array($result))
{
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<head>
    <title>Surrix - <?php echo $row["title"]; ?></title>
    <style type="text/css">
A:link, A:visited, A:active {
    COLOR: #C9CCD1;
    TEXT-DECORATION: underline;
}
A:hover {
    COLOR: #8CA3C6;
    BACKGROUND-COLOR: #485363;
    }
    </style>
</head>

<body bgcolor="#273549">
<center><img src="logo.jpg"><br></center>
<table bgcolor="#273549" width="900" cellpadding="10" cellspacing="0" border="0">
<tr><td align='center' width =' 150' valign='top'>

<table border="0" cellspacing="0" cellpadding="0" width="150">
<tr>
    <td bgcolor="#CDCBCB" >
<table width="150" border="0" cellspacing="1" cellpadding="3">
<tr>
    <td valign="top" bgcolor="#272F3B">&nbsp;<font color="#FFFFFF"><b>Main Menu</b></font>
    </td>
</tr>
<tr>
    <td bgcolor="#7A8595"><font face="verdana,arial,helvetica" size="1" ><font face="verdana,arial,helvetica" size="1" ><strong><big>?</big></strong> <a href="/index.php">Home</a><br>

<strong><big>?</big></strong> <a href="http://www.surrix.net/forums/index.php">Forums</a><br>
<strong><big>.</big></strong> <a href="http://www.surrix.net/db/">Articles Database</a><br>
<strong><big>?</big></strong> <a href="http://www.surrix.net/links.php">Web Links</a><br>
<strong><big>?</big></strong> <a href="http://www.surrix.net/forums/vbstats.php">Stats</a><br>
    </td>
</tr>
</table>
    </td>

</tr>
</table>

<td valign="top" align="center" width="100%"><table cellpadding="0" cellspacing="0" border="0" bgcolor="000000" align="center" width="100%">
<tr><td vAlign="top" bgColor="000000" width="100%"> 
    </td></tr>
</table>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
    <td bgcolor="#FFFFFF" >

<table width="100%" border="0" cellspacing="1" cellpadding="3">
<tr>
    <td bgcolor="#272F3B">&nbsp;<font color="#FFFFFF"><b><?php echo "" $row["title"] . " By:  <a href=\"mailto:" $row["email"] . "\">" $row["author"] . "</a>"?></b></font>
    </td>
</tr>
<tr>
    <td bgcolor="#FFFFFF"><font face="verdana,arial,helvetica" size="1" ><table border='0' cellspacing='0' cellpadding='0' width='100%'>
    <tr>
    <td bgcolor='#CDCBCB' width='100%' >
    <table width='100%' border='0' cellspacing='1' cellpadding='3'>

    <tr>
    <th bgcolor='#7A8595' width='100%' align='right'>

    <table width='100%' border='0' cellspacing='0' cellpadding='0' bordercolor='#FFFFFF'>
    <tr><td bgcolor='#7A8595' valign='top' align='justify' bordercolor='#FFFFFF'>
    <?php echo $row["body"];
          echo 
"<a href=\"http://www.surrix.net/forums/newreply.php?action=newreply&threadid=" $row["commentid"] . "\">Comment on this article</a>";
          
mysql_free_result($result);
?>
And I get this error when I run it:
Quote:
Parse error: parse error in /home/surrix/public_html/db/read.php on line 83
Line 83 is the last line of the above code which I don't think there is anything wrong with it. So could someone please help me with it.
Reply With Quote
 
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01375 seconds
  • Memory Usage 1,796KB
  • Queries Executed 11 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD_SHOWPOST
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php
  • (1)bbcode_quote
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_box
  • (1)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit_info
  • (1)postbit
  • (1)postbit_onlinestatus
  • (1)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • reputationlevel
  • showthread
Included Files:
  • ./showpost.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_postinfo_query
  • fetch_postinfo
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • showpost_start
  • bbcode_fetch_tags
  • bbcode_create
  • postbit_factory
  • showpost_post
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • showpost_complete