NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PHP Forum Script Line 8 Eror

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 12-16-2005, 01:44 PM THREAD STARTER               #1 (permalink)
NamePros Member
Join Date: Dec 2005
Posts: 195
WherezHost will become famous soon enough
 



PHP Forum Script Line 8 Eror


Well i read a tutorial of how to make your own forum script. Ive done all the steps but now when you visit www.gamehatch.net/forums/forums.php you get the eror:
PHP Code:
Parse errorparse errorunexpected T_LNUMBERexpecting T_VARIABLE or '$' in /home/gamehat/public_html/forums/forums.php on line 8 
????: NamePros.com http://www.namepros.com/programming/148670-php-forum-script-line-8-eror.html
Line 8 is blank and its ment to be blank but ill give you line 8 and 10

PHP Code:
8-   $$row['numrows'];    
9-
10$query "SELECT COUNT(id) AS numrows FROM forumboards WHERE category='2'"
Please help me out here coz im not good with PHP. Ill deliever some NP$ down if anyone cant sort this.
WherezHost is offline  
Old 12-16-2005, 02:05 PM   #2 (permalink)
jdk
Senior Member
 
jdk's Avatar
Join Date: Jul 2004
Location: Florida
Posts: 1,492
jdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond repute
 



The $1 is your problem. You have to start a variable with a letter and not a number. Try to change that and it should work.
__________________
All offers are valid for 12 hours unless otherwise stated.
Last edited by jdk; 12-16-2005 at 02:08 PM.
jdk is offline  
Old 12-16-2005, 04:06 PM THREAD STARTER               #3 (permalink)
NamePros Member
Join Date: Dec 2005
Posts: 195
WherezHost will become famous soon enough
 



What shall i change it to? I really suck at PHP.
WherezHost is offline  
Old 12-16-2005, 04:29 PM   #4 (permalink)
Senior Member
 
Scott's Avatar
Join Date: Jun 2003
Location: UK
Posts: 3,547
Scott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond reputeScott has a reputation beyond repute
 

Member of the Month
February 2005

You'd have to change all instances of $1 in your script to something such as $one.
Scott is offline  
Old 12-16-2005, 07:39 PM   #5 (permalink)
jdk
Senior Member
 
jdk's Avatar
Join Date: Jul 2004
Location: Florida
Posts: 1,492
jdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond reputejdk has a reputation beyond repute
 



Or any $variable except $# where # is an integer.
__________________
All offers are valid for 12 hours unless otherwise stated.
jdk is offline  
Old 12-18-2005, 08:43 AM   #6 (permalink)
Senior Member
 
nasaboy007's Avatar
Join Date: Jul 2005
Location: NJ
Posts: 1,219
nasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud ofnasaboy007 has much to be proud of
 



or u can just make it $r1 instead of $1 if u dont wanna type it out.
nasaboy007 is offline  
Closed Thread


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Creating A Successful Forum Morgan Website Development 33 05-10-2006 04:20 AM
Need PHP Forum Script Delete Scripts For Sale 10 10-24-2003 12:12 AM

Liquid Web Smart Servers  
All times are GMT -7. The time now is 03:39 AM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger