Ghezzo Posted May 27, 2009 Posted May 27, 2009 Hello, I need help with the staff application mod. Parse error: syntax error, unexpected '>' in /home/******/public_html/smenu.php on line 14 { print " <tr><td> [url='staff.php?action=basicset']Basic Settings[/url]</td></tr> <tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>" <tr><td> [url='staff.php?action=lstaffaps&lock=1']Lock Staff Apps[/url] <tr><td> [url='staff.php?action=lstaffaps&lock=2']Unlock Staff Apps[/url] <tr><td> [url='staff.php?action=staffaps']Staff Applications[/url] ; } Quote
Danny696 Posted May 27, 2009 Posted May 27, 2009 Re: Staff application 2 problems i see you ened the print on the line <tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>" and if its V2 the links are wrong heres the proper ones { print " > [url='staff.php?action=basicset']Basic Settings[/url] > [url='staff.php?action=announce']Add Announcement[/url] > [url='staff.php?action=lstaffaps&lock=1']Lock Staff Apps[/url] > [url='staff.php?action=lstaffaps&lock=2']Unlock Staff Apps[/url] > [url='staff.php?action=staffaps']Staff Applications[/url] "; } Quote
AbsentCrisis Posted May 27, 2009 Posted May 27, 2009 Re: Staff application The only problem was a missing ". But try this; { echo ' <tr><td> <a href=staff.php?action=basicset>Basic Settings</a></td></tr> <tr><td> <a href=staff.php?action=announce>Add Announcement</a></td></tr> <tr><td> <a href=staff.php?action=lstaffaps&lock=1>Lock Staff Apps</a> <tr><td> <a href=staff.php?action=lstaffaps&lock=2>Unlock Staff Apps</a> <tr><td> <a href=staff.php?action=staffaps>Staff Applications</a> '; } Quote
Ghezzo Posted May 28, 2009 Author Posted May 28, 2009 Re: Staff application The only problem was a missing ". But try this; { echo ' <tr><td> <a href=staff.php?action=basicset>Basic Settings</a></td></tr> <tr><td> <a href=staff.php?action=announce>Add Announcement</a></td></tr> <tr><td> <a href=staff.php?action=lstaffaps&lock=1>Lock Staff Apps</a> <tr><td> <a href=staff.php?action=lstaffaps&lock=2>Unlock Staff Apps</a> <tr><td> <a href=staff.php?action=staffaps>Staff Applications</a> '; } Thanks, this worked great :) Quote
Danny696 Posted May 28, 2009 Posted May 28, 2009 Re: Staff application The Origingal { print " <tr><td> [url='staff.php?action=basicset']Basic Settings[/url]</td></tr> <tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>" <tr><td> [url='staff.php?action=lstaffaps&lock=1']Lock Staff Apps[/url] <tr><td> [url='staff.php?action=lstaffaps&lock=2']Unlock Staff Apps[/url] <tr><td> [url='staff.php?action=staffaps']Staff Applications[/url] ; } Yours { echo ' <tr><td> <a href=staff.php?action=basicset>Basic Settings</a></td></tr> <tr><td> <a href=staff.php?action=announce>Add Announcement</a></td></tr> <tr><td> <a href=staff.php?action=lstaffaps&lock=1>Lock Staff Apps</a> <tr><td> <a href=staff.php?action=lstaffaps&lock=2>Unlock Staff Apps</a> <tr><td> <a href=staff.php?action=staffaps>Staff Applications</a> '; } if you look carefully at the original he didnt miss the " he added it on the 2nd line <tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>" so all you needed to do was move the " to before the ; Quote
Miniman Posted May 28, 2009 Posted May 28, 2009 Re: Staff application The Origingal { print " <tr><td> [url='staff.php?action=basicset']Basic Settings[/url]</td></tr> <tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>" <tr><td> [url='staff.php?action=lstaffaps&lock=1']Lock Staff Apps[/url] <tr><td> [url='staff.php?action=lstaffaps&lock=2']Unlock Staff Apps[/url] <tr><td> [url='staff.php?action=staffaps']Staff Applications[/url] ; } Yours { echo ' <tr><td> <a href=staff.php?action=basicset>Basic Settings</a></td></tr> <tr><td> <a href=staff.php?action=announce>Add Announcement</a></td></tr> <tr><td> <a href=staff.php?action=lstaffaps&lock=1>Lock Staff Apps</a> <tr><td> <a href=staff.php?action=lstaffaps&lock=2>Unlock Staff Apps</a> <tr><td> <a href=staff.php?action=staffaps>Staff Applications</a> '; } if you look carefully at the original he didnt miss the " he added it on the 2nd line <tr><td> [url='staff.php?action=announce']Add Announcement[/url]</td></tr>" so all you needed to do was move the " to before the ; Yes, but now he is using echo instead of print, this is more effective :) It works doesn't it? So there is no problem... Quote
Danny696 Posted May 28, 2009 Posted May 28, 2009 Re: Staff application yer it wroks but i was proving a point Quote
Miniman Posted May 28, 2009 Posted May 28, 2009 Re: Staff application yer it wroks but i was proving a point It wasn't a point as no-one was questioning your way of doing thing's, it was just simply that. Your way of doing it. :-) Quote
Ghezzo Posted May 28, 2009 Author Posted May 28, 2009 Re: Staff application Thanks for all the help, I need help with my other topic about the brave/exp bar. Quote
Danny696 Posted May 28, 2009 Posted May 28, 2009 Re: Staff application ive seen that not sure tho whats the name of ur website and ill check it out Quote
Ghezzo Posted May 29, 2009 Author Posted May 29, 2009 Re: Staff application The game is on http://drugbattles.co.cc 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.