Current location: Hot Scripts Forums » Programming Languages » PHP » Simple problem (i think)


Simple problem (i think)

Reply
  #1 (permalink)  
Old 04-20-11, 10:45 PM
Nickolas Nickolas is offline
New Member
 
Join Date: Apr 2011
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Simple problem (i think)

Whats wrong with this line thats causing an error?

PHP Code:

                    Print "<li><h3>".$info['name'] . "</h3></li>";//43

                    
$parent ".$info['id'].";//44
                    
$dat mysql_query("SELECT * FROM `forums` WHERE parent = $parent");//45
                    
while($inf mysql_fetch_array$dat ))//46 

Parse error: syntax error, unexpected T_ENCAPSED_AND_WHITESPACE, expecting T_STRING or T_VARIABLE or T_NUM_STRING in C:\xampp\htdocs\forum\index.php on line 44
Reply With Quote
  #2 (permalink)  
Old 04-21-11, 02:35 AM
Nico's Avatar
Nico Nico is offline
Community Leader
 
Join Date: Sep 2005
Location: Spain
Posts: 8,075
Thanks: 11
Thanked 88 Times in 83 Posts
PHP Code:

$parent $info['id'];//44 

Reply With Quote
Reply

Bookmarks


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

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Unknown Javascript/Ajax problem vitron JavaScript 9 06-05-09 11:44 AM
simple mail() problem STphp PHP 2 03-26-08 10:22 PM
A few simple scripts aaroninwv Script Requests 6 03-20-08 11:01 AM
form value passing problem kiko PHP 5 11-29-07 09:52 PM
simple problem...i hope Skyhawk PHP 3 05-17-05 12:06 PM


All times are GMT -5. The time now is 08:47 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.