News: When asking for support, it helps us and you, if you read the Posting Guidelines

Login  |  Register
HTML5 Icon HTML5 Icon HTML5 Icon
TP on Social Media
Welcome, Guest. Please login or register.
Did you miss your activation email?

February 21, 2020, 02:12:55 AM

Login with username, password and session length

Recent

Members
Stats
  • Total Posts: 189508
  • Total Topics: 20801
  • Online Today: 191
  • Online Ever: 917
  • (January 21, 2020, 09:02:26 AM)
Users Online
Users: 1
Guests: 186
Total: 187

Author Topic: Parse error when posting PHP article..  (Read 2279 times)

0 Members and 1 Guest are viewing this topic.

alvinleephd

  • Guest
Parse error when posting PHP article..
« on: December 20, 2005, 11:56:12 AM »
http://worthlessforums.com/index.php?page=6

I  get this:
Parse error: parse error, unexpected '[' in /home/alvinlee/public_html/Sources/Load.php(1598) : eval()'d code(92) : eval()'d code on line 1

what's wrong?

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: Parse error when posting PHP article..
« Reply #1 on: December 20, 2005, 12:03:44 PM »
Hard to tell without seeing your code. Won't saying I'll know right off the bat, but I sometimes find the error.

alvinleephd

  • Guest
Re: Parse error when posting PHP article..
« Reply #2 on: December 20, 2005, 12:07:00 PM »
what code do you need?

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: Parse error when posting PHP article..
« Reply #3 on: December 20, 2005, 12:23:15 PM »
I was assuming you put some code in the block.

alvinleephd

  • Guest
Re: Parse error when posting PHP article..
« Reply #4 on: December 20, 2005, 12:27:47 PM »
here's exactly what i posted:
Code: [Select]
[url=http://www.overstock.com/cgi-bin/d2.cgi?cid=54555&PAGE=PRODUCT&PROD_ID=1745894&fp=F&siteID=RjWYtCqO0.M-AxM57IbBKbSnXKgm98Klgg&cid=60488&fp=F]Link[/url]

[IMG]http://www.worthlessforums.com/upload/files/1/images/P10108086.jpg[/IMG]

HOT deal! Retails at over [b]$400[/b]

Before coupon code: $279.99
After coupon code: $249.99

Coupon code: http://www.gottadeal.com/Coupon/1002

Specs:
# 20GB storage capacity
# Store up to 80 hours of video or over 600 hours of music
# MP3/WAV/WMA audio format support
# MMPMEG-4 video format support
# 320 x 240 max video resolution
# 3.5-inch screen
# USB 2.0 interface
# FM stereo tuner
# Radio recorder
# Rechargeable lithium battery
# Up to 5 hours playback on full battery charge

Offline IchBin™

  • Developer
  • *
  • Posts: 16228
    • My Website
Re: Parse error when posting PHP article..
« Reply #5 on: December 20, 2005, 12:41:09 PM »
How come you're using BBcode in a PHP article?
Try something like this:
Code: [Select]
echo ' <a href="http://www.overstock.com/cgi-bin/d2.cgi?cid=54555&PAGE=PRODUCT&PROD_ID=1745894&fp=F&siteID=RjWYtCqO0.M-AxM57IbBKbSnXKgm98Klgg&cid=60488&fp=F">Link</a>';
echo ' <br /><br /> <img src="http://www.worthlessforums.com/upload/files/1/images/P10108086.jpg" />';

echo '<br />HOT deal! Retails at over <strong>$400</strong>';

echo '<pre>Before coupon code: $279.99
After coupon code: $249.99

Coupon code: http://www.gottadeal.com/Coupon/1002

Specs:
# 20GB storage capacity
# Store up to 80 hours of video or over 600 hours of music
# MP3/WAV/WMA audio format support
# MMPMEG-4 video format support
# 320 x 240 max video resolution
# 3.5-inch screen
# USB 2.0 interface
# FM stereo tuner
# Radio recorder
# Rechargeable lithium battery
# Up to 5 hours playback on full battery charge</pre>';