General Programming Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
User Name:
Password:
Remember me
 
Go Back   Dev Articles Community ForumsProgrammingGeneral Programming Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Display Modes
 
Unread Dev Articles Community Forums Sponsor:
  #1  
Old May 13th, 2003, 11:57 PM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
Script Help - I can't figure out whatthe actual problem is

I have a menu page for after someone logs in. But it is giving me an error and I can't figure out why.

Quote:
Parse error: parse error, unexpected '{' in /home/virtual/site4/fst/var/www/html/test/suanhacky/menu.php on line 16


I have attached the script and the files that are included or required with the exception of the db connection class which I know is working cause it does with the log-in page
Attached Files
File Type: zip menuscript.zip (2.4 KB, 246 views)
__________________
CHornJr
"One day I'll know what I am doing"
My Blog
Suanhacky Lodge #49
Rebel Squadrons

Reply With Quote
  #2  
Old May 14th, 2003, 12:46 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 7
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
PHP Code:
elseif($row['level']==5//$row['level']==6//$row['level']==7) 

those // are commenting out everything after them, thus commenting out the ) which closes the elseif conditon. take out the options you don't need.
__________________




"Only Linux users see the end of crashes."
- Pl4t0

Reply With Quote
  #3  
Old May 14th, 2003, 01:12 AM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
I can't believe I made such a stupid mistake and didn't realize it

I wanted it to || for "or" thank you for telling me.

Now I have a new problem It now says

Quote:
Parse error: parse error, unexpected T_STRING in /home/virtual/site4/fst/var/www/html/test/suanhacky/class.check.php on line 7

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/virtual/site4/fst/var/www/html/test/suanhacky/menu.php on line 4

Parse error: parse error, unexpected '}' in /home/virtual/site4/fst/var/www/html/test/suanhacky/class.checkend.php on line 8


I tried changing on line 4 $result to $rowcheck but it gives me the error of

Quote:
Parse error: parse error, unexpected $ in /home/virtual/site4/fst/var/www/html/test/suanhacky/menu.php on line 27


The only thing i can think of is for it to re-do the query again in the menu. But it looks repetative to me since it is including the check login class which has it

Last edited by CHornJr : May 14th, 2003 at 01:22 AM.

Reply With Quote
  #4  
Old May 14th, 2003, 01:16 AM
wAr-AnGeL wAr-AnGeL is offline
Forum Security
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Apr 2002
Location: Behind You
Posts: 479 wAr-AnGeL User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 m 50 sec
Reputation Power: 7
Send a message via ICQ to wAr-AnGeL Send a message via AIM to wAr-AnGeL
np, we all make mistakes like that

Reply With Quote
  #5  
Old May 14th, 2003, 01:23 AM
CHornJr's Avatar
CHornJr CHornJr is offline
Contributing User
Dev Articles Newbie (0 - 499 posts)
 
Join Date: Nov 2002
Location: New York City
Posts: 236 CHornJr User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 Day 1 h 50 m 36 sec
Reputation Power: 7
Send a message via AIM to CHornJr Send a message via MSN to CHornJr Send a message via Yahoo to CHornJr
Now I have a new problem It now says



quote:
--------------------------------------------------------------------------------
Parse error: parse error, unexpected T_STRING in /home/virtual/site4/fst/var/www/html/test/suanhacky/class.check.php on line 7

Warning: mysql_fetch_assoc(): supplied argument is not a valid MySQL result resource in /home/virtual/site4/fst/var/www/html/test/suanhacky/menu.php on line 4

Parse error: parse error, unexpected '}' in /home/virtual/site4/fst/var/www/html/test/suanhacky/class.checkend.php on line 8
--------------------------------------------------------------------------------



I tried changing on line 4 $result to $rowcheck but it gives me the error of


quote:
--------------------------------------------------------------------------------
Parse error: parse error, unexpected $ in /home/virtual/site4/fst/var/www/html/test/suanhacky/menu.php on line 27
--------------------------------------------------------------------------------



The only thing i can think of is for it to re-do the query again in the menu. But it looks repetative to me since it is including the check login class which has it

Reply With Quote
Reply

Viewing: Dev Articles Community ForumsProgrammingGeneral Programming Help > Script Help - I can't figure out whatthe actual problem is


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT