GIDForums  

Go Back   GIDForums > Computer Programming Forums > MySQL / PHP Forum
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

 
 
Thread Tools Search this Thread Rate Thread
  #1  
Old 30-Oct-2005, 12:09
dave_w dave_w is offline
New Member
 
Join Date: Oct 2005
Posts: 8
dave_w is on a distinguished road
Exclamation

unexpected $


i keep getting the following error in this piece of code and would apreciate any help. thanks.

Parse error: parse error, unexpected $

PHP Code:

/**
    * query - Performs the given query on the database and
    * returns the result, which may be false, true or a
    * resource identifier.
    */
   function query($query){
      return mysql_query($query, $this->connection);
   }
};

/* Create database connection */
 new MySQLDB = ($database) ;

?> 

  #2  
Old 02-Nov-2005, 10:07
djd@n djd@n is offline
Awaiting Email Confirmation
 
Join Date: Oct 2005
Posts: 21
djd@n is on a distinguished road

Re: unexpected $


are you sure that all the $ you have put in are supposed to be there?
 
 

Recent GIDBlogProblems with the Navy (Chiefs) by crystalattice

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in ukrspp21 MySQL / PHP Forum 33 02-Sep-2009 20:42
Unexpected end of file while looking for precompiled header directive Guest1234 MS Visual C++ / MFC Forum 4 01-Dec-2005 10:12
Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' quiescent MySQL / PHP Forum 7 13-Nov-2005 16:43
apache2 - php cgi fehler - schleife inna Apache Web Server Forum 8 27-Nov-2003 10:55

Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The

All times are GMT -6. The time now is 08:38.


vBulletin, Copyright © 2000 - 2009, Jelsoft Enterprises Ltd.