EpicFuse Posted June 18, 2009 Posted June 18, 2009 Parse error: syntax error, unexpected T_STRING in /home/class/public_html/mainmenu.php on line 46 wht do i have to do :cry: Quote
SouIAssassin Posted June 18, 2009 Posted June 18, 2009 Re: Help on line 45 there might be a print missing a "; or just a ; at the end iam not too sure but past your line 44-47 code here and i can look at see Quote
EpicFuse Posted June 18, 2009 Author Posted June 18, 2009 Re: Help <?php global $db,$c,$ir, $set; $hc=$set['hospital_count']; $jc=$set['jail_count']; $ec=$ir['new_events']; $mc=$ir['new_mail']; if($ir['hospital']) { print "Hospital ($hc) Inventory "; } elseif($ir['jail']) { print "Jail ($jc) "; } else { print "Home Inventory "; } if($ec > 0) { print "Events ($ec) "; } else { print "Events (0) "; } if($mc > 0) { print "Mailbox ($mc) "; } else { print "Mailbox (0) "; } if($ir['jail'] and !$ir['hospital']) { print "Jail Gym Hospital ($hc) "; } else if (!$ir['hospital']) { print "City Gym Crimes Your Job Local School Hospital ($hc) Jail ($jc) HALL OF FAME User List Drug Corner Search ";"; } else { print "Jail ($jc) "; } print "Forums "; if($ir['new_announcements']) { print "Announcements ({$ir['new_announcements']}) "; } else { print "Announcements (0) "; } } if($ir['user_level'] > 1) { print "<hr /> Staff Panel \n"; print "<hr />Staff Online: "; $q=$db->query("SELECT * FROM users WHERE laston>(unix_timestamp()-15*60) AND user_level>1 ORDER BY userid ASC"); while($r=$db->fetch_row($q)) { $la=time()-$r['laston']; $unit="secs"; if($la >= 60) { $la=(int) ($la/60); $unit="mins"; } if($la >= 60) { $la=(int) ($la/60); $unit="hours"; if($la >= 24) { $la=(int) ($la/24); $unit="days"; } print" User List "; } print "{$r['username']} ($la $unit) "; } } if($ir['donatordays']) { print "<hr /> Donators Only Friends List Black List"; } print "<hr /> Preferences Player Report Help Tutorial Game Rules My Profile Logout Time is now "; echo date ('F j, Y')." ".date('g:i:s a'); ?> Quote
Feky Posted June 18, 2009 Posted June 18, 2009 Re: Help Replace this else if (!$ir['hospital']) { print "City Gym Crimes Your Job Local School Hospital ($hc) Jail ($jc) HALL OF FAME User List Drug Corner Search ";"; with this else if (!$ir['hospital']) { print "City Gym Crimes Your Job Local School Hospital ($hc) Jail ($jc) HALL OF FAME User List Drug Corner Search "; Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.