[advanced search]
 

Go Back   NamePros.com > Discussion > Web Design & Development > Programming

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


Closed Thread
 
LinkBack Thread Tools
Old 12-16-2005, 12:44 PM   #1 (permalink)
NamePros Member
 
Join Date: Dec 2005
Posts: 197
0.00 NP$ (Donate)

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 error: parse error, unexpected T_LNUMBER, expecting T_VARIABLE or '$' in /home/gamehat/public_html/forums/forums.php on line 8
Line 8 is blank and its ment to be blank but ill give you line 8 and 10

PHP Code:
8-   $1 = $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, 01:05 PM   #2 (permalink)
jdk
Senior Member
 
jdk's Avatar
 
Join Date: Jul 2004
Location: Florida
Posts: 1,223
306.40 NP$ (Donate)

jdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to all


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 bids are valid for 24 hours unless otherwise stated.

Last edited by jdk; 12-16-2005 at 01:08 PM.
jdk is offline  
Old 12-16-2005, 03:06 PM   #3 (permalink)
NamePros Member
 
Join Date: Dec 2005
Posts: 197
0.00 NP$ (Donate)

WherezHost will become famous soon enough


What shall i change it to? I really suck at PHP.
WherezHost is offline  
Old 12-16-2005, 03:29 PM   #4 (permalink)
Senior Member
 
Scott's Avatar
 
Join Date: Jun 2003
Location: UK
Posts: 3,773
58.82 NP$ (Donate)

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

Save The Children Save The Children Save The Children Save The Children Save The Children
You'd have to change all instances of $1 in your script to something such as $one.
Scott is offline  
Old 12-16-2005, 06:39 PM   #5 (permalink)
jdk
Senior Member
 
jdk's Avatar
 
Join Date: Jul 2004
Location: Florida
Posts: 1,223
306.40 NP$ (Donate)

jdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to alljdk is a name known to all


Or any $variable except $# where # is an integer.
__________________
All bids are valid for 24 hours unless otherwise stated.
jdk is offline  
Old 12-18-2005, 07:43 AM   #6 (permalink)
Senior Member
 
nasaboy007's Avatar
 
Join Date: Jul 2005
Location: NJ
Posts: 1,112
1,454.30 NP$ (Donate)

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 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

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 On
Pingbacks are On
Refbacks are On


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

Site Sponsors
Advertise your business at NamePros

All times are GMT -7. The time now is 11:06 PM.


Powered by: vBulletin® Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0
Template-Modifications by TMS
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85