TalkPHP
 
 
Account Login
Latest Articles
» The basic usage of PHPTAL, a XML/XHTML template library for PHP
» Vulnerable methods and the areas they are commonly trusted in.
» Simple way to protect a form from bot
» The Basics On: How Session Stealing Works
» How to keep your forms from double posting data
IRC Channel
IRC Speech Bubble Join the friendly bunch on IRC...
(#TalkPHP on Freenode)

...Also available via a web interface.

See this thread for information on the TalkPHP Free Hugs Initiative™. Subject to availability.
Associates
Associates
CSS Tutorials
Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old 03-02-2009, 01:36 AM   #1 (permalink)
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default it just doesn't make sense!!!

Ok everyone I am back:D But I am having trouble on something it is again a game...

I get a syntax error with a unexpected T_STRING here it is so you know the whole error

Parse error: syntax error, unexpected T_STRING in /home1/clubbink/public_html/hit.php on line 19



It is calling 19 everyone has told me it looks correct but it is still calling an error I am posting lines 12 to 22 I cannot find it anywhere wrong with it maybe you geniuses might. I will number them as well

PHP Code:
12 if($rnk){$r=$rnk;}
13 if(($r > 0)){$pmp[1]=$r;}
14 $l=15+$pmp[1];
15 $h=$pmp[1]-15;
16 $high=round($user[worth]*2);
17 $low=round($user[worth]/2)
18
19 GAMEHEADER("$cty[0]");
20 ?><body background="../bg.gif">
21 <img src="images/attack.jpg" width="141" height="114>
22 <form method="post" action="hit.php?pmp=&rid=<?=$rid?>">
KingOfTheSouth is offline  
Reply With Quote
Old 03-02-2009, 01:51 AM   #2 (permalink)
Moderateur
RegEx Guru PHP Guru Top Contributor Advanced Programmer 
 
Salathe's Avatar
 
Join Date: Apr 2007
Posts: 1,393
Thanks: 5
Salathe is on a distinguished road
Default

There's no semi-colon at the end of line 17.
Salathe is offline  
Reply With Quote
Old 03-02-2009, 01:53 AM   #3 (permalink)
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default

ha ha wow i am stupid.... I might have been searching too hard i worked on this for like an hour and was getting really frustrated
KingOfTheSouth is offline  
Reply With Quote
Old 03-02-2009, 03:39 AM   #4 (permalink)
Wizard
Top Contributor 
 
Village Idiot's Avatar
 
Join Date: Sep 2007
Posts: 1,299
Thanks: 17
Village Idiot is on a distinguished road
Default

That happens a lot, don't even get me started on errors that hung me over for ages on something as small as that. Just as reference though, most parse errors, especially those with "unexpected T_STRING", are forgotten semi-colons. Always check that first.
__________________

Village Idiot is offline  
Reply With Quote
The Following User Says Thank You to Village Idiot For This Useful Post:
KingOfTheSouth (03-02-2009)
Old 03-02-2009, 08:54 PM   #5 (permalink)
The Acquainted
 
KingOfTheSouth's Avatar
 
Join Date: Oct 2008
Location: Cincinnati
Posts: 151
Thanks: 14
KingOfTheSouth is on a distinguished road
Default

hmm never knew that... I get that error sometimes and could never figure it out before and so i replace the file with the original and restart
KingOfTheSouth is offline  
Reply With Quote
Old 03-03-2009, 01:54 AM   #6 (permalink)
The Wanderer
 
Join Date: Jun 2008
Posts: 10
Thanks: 4
webid is on a distinguished road
Default php editor with Syntax Highlight

To help you with these kind of 'errors' try editing your code on any text editor/ide with syntax highlight.

Check this list. Notepad++ is good and free
webid is offline  
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
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

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Tips to Improve Your Coding and Projects Village Idiot Tips & Tricks 45 12-03-2012 07:46 AM
Weird MYSQL that does not make sense!!!! KingOfTheSouth MySQL & Databases 7 12-28-2008 02:40 PM
Where would i start to make... Patriotfan Absolute Beginners 15 07-27-2008 09:36 PM
Make Your Own PHP Flash Player Which You Can Pass a File Variable with Preview!!!! thegrayman Tips & Tricks 2 12-12-2007 12:44 AM
Tutorial: PHP and OOP, a beginners guide Village Idiot Tips & Tricks 0 09-06-2007 04:23 PM


All times are GMT. The time now is 08:30 AM.

 
     

Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.1.0
Inactive Reminders By Icora Web Design