Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Parse error: parse error, unexpected '>' in /home/prophacy/public_html/battle.php
Old 03-08-2005, 01:45 PM Parse error: parse error, unexpected '>' in /home/prophacy/public_html/battle.php
Novice Talker

Posts: 6
Trades: 0
i keep getting this message when i click on one of my links

Parse error: parse error, unexpected '>' in /home/prophacy/public_html/battle.php on line 55


what dose this mean?

there is no > on line 55?

line55: $tcreditgain = $creditgain / 100 * ttax;
Darkprophacy is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-08-2005, 01:51 PM
0beron's Avatar
Defies a Status

Posts: 1,832
Location: Somewhere else entirely
Trades: 0
Can we see the code on either side of line 55? Sometimes php hits a parse error further up the script and then only fails later on. Have a look at the lines above and check their syntax carefully.
__________________
UPDATE 0beron SET talkupation = talkupation + lots WHERE post = 'helpful';

Please login or register to view this content. Registration is FREE
(aka MSN handwriting for forums)
0beron is offline
Reply With Quote
View Public Profile Visit 0beron's homepage!
 
Old 03-08-2005, 01:54 PM
Novice Talker

Posts: 6
Trades: 0
$ttax = mysql_fetch_array(mysql_query("select tax from tribes where players tribe =players[tribe]));
}
echo "</pre>"; THIS BIT MAY BE WRONG!!!



$expgain = (rand(5,10) * $enemy[level]);
$texpgain = ($expgain / 100) * ttax;
$creditgain = ($enemy[credits] / 10);
$tcreditgain = $creditgain / 100 * ttax;
print "<b>$stat[user]</b> have gained <b>$expgain</b> EXP and <b>$creditgain</b> cash.<br>";
mysql_query("update players set hp=$stat[hp] where id=$stat[id]");
mysql_query("update players set hp=0 where id=$enemy[id]");
mysql_query("update players set exp=exp+$expgain - $texpgain where id=$stat[id]");
mysql_query("update players set credits=credits+$creditgain - $tcreditgain where id=$stat[id]");
mysql_query("update tribes set exp=exp+$texpgain where id=$stat[id]");
mysql_query("update tribes set credits=credits+$tcreditgain where id=$stat[id]");
mysql_query("update players set wins=wins+1 where id=$stat[id]");
mysql_query("update players set losses=losses+1 where id=$enemy[id]");
mysql_query("update players set lastkilled='$enemy[user]' where id=$stat[id]");
mysql_query("update players set lastkilledby='$stat[user]' where id=$enemy[id]");
$texp = ($stat[exp] + $expgain);
$expn = (($stat[level] * 50) + ($stat[level] * 15));
if ($texp >= $expn) {
Darkprophacy is offline
Reply With Quote
View Public Profile
 
Old 03-08-2005, 01:59 PM
Novice Talker

Posts: 6
Trades: 0
Thanx i fixed it,

now i have another problem

it says unexspected > on this line

print "<b>$stat[user]</b> have gained <b>$expgain</b> EXP and <b>$creditgain</b> cash.<br>";
Darkprophacy is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Parse error: parse error, unexpected '>' in /home/prophacy/public_html/battle.php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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 On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.13941 seconds with 12 queries