Jump to content

Parse error: syntax error, unexpected T_LNUMBER ? where? i can't see the bug.


bilis_money

Recommended Posts

hi, please help me with this i'm totally lost in these codes.

[code]
<?php

//get old comment data from table
//store old comment data into temporary variable
//if save button submitted then
//then incorporate newly inputted data
//into old data into temporary variable.
//then display combined data and form again.

include 'include/opendb.php';
$self = $_SERVER['PHP_SELF'];

if (isset($_POST['action']) && $_POST['action'] == 'submitted') {
echo $comment, "<br><br>";
echo '<a href="'. $self .'">Please try again</a>';

$comment_tmp = $_POST['comment'];

$query = "UPDATE photos SET comments='$comment_tmp' WHERE id='91';
mysql_query($query) or die('Error, insert query failed');

} else {

echo ('<table border="0" width="261" height="152">
<tr>
<td width="290" height="146">
  <form method="POST" action=".$self.">
<textarea rows="9" name="comment" cols="33"></textarea>
<input type="hidden" name="action" value="submitted" />
<input type="submit" value="Submit" name="B1">
<input type="reset" value="Reset" name="B2">
  </form>
</td>
  </tr>
</table>');

}
?>
[/code]

and the error message was;
[code]Parse error: syntax error, unexpected T_LNUMBER in /home/askjames/public_html/mygallery/add_comment.php on line 24[/code]

please help me i'm totally scratching my butt with this.

thank u for your kind help in advance.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.