![]() |
|
|||||||
|
|
Thread Tools | Search this Thread | Rate Thread |
|
#1
|
|||
|
|||
Parse error: parse error, expecting `T_VARIABLE' or `'$''Hi ,
i m new to php, m doin a School project and i'm having a problem with "Parse error: parse error, expecting `T_VARIABLE' or `'$'' in C:\wamp\www\poll\connect.php on line 30" i ve tried many ways to eliminate this problem still cannot, so kindly help me Ebin PHP Code:
|
|||
|
#2
|
||||
|
||||
Re: Parse error: parse error, expecting `T_VARIABLE' or `'$''Hello ebinz,
It is either: PHP Code:
or PHP Code:
and NOT how you typed it in your post. |
|
#3
|
|||
|
|||
Re: Parse error: parse error, expecting `T_VARIABLE' or `'$''hi sorry for the late reply
Warning: mysql_connect() [function.mysql-connect]: Access denied for user 'root'@'localhost' (using password: YES) in C:\wamp\www\pollstest\connect.php on line 30 Access denied for user 'root'@'localhost' (using password: YES) PHP Code:
|
|
#4
|
||||
|
||||
Re: Parse error: parse error, expecting `T_VARIABLE' or `'$''That could possibly be a few things: (if not more)
1. The password is wrong 2. The MySQL port is configured to something other than default [3306] 3. The 'root' does not have localhost login [rare, but possible] EDIT: Also, based on your variables, shouldn't this line: PHP Code:
PHP Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
Recent GIDBlog
Once again, no time for hobbies by crystalattice
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
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 |
| Parse error: parse error, unexpected T_STRING | Richardknox | PHP Code Library | 3 | 19-May-2007 15:42 |
| Parse error: parse error, unexpected T_STRING in /home/content/R/i/c/RichardAKnox/htm | Richardknox | MySQL / PHP Forum | 5 | 18-Nov-2006 22:20 |
| Apologies In Advance Parse error: parse error, unexpected T_STRING, expecting T_VARI | sph2005 | MySQL / PHP Forum | 11 | 17-Jul-2006 10:28 |
| Parse Error | vigilantweather | MySQL / PHP Forum | 6 | 04-Feb-2006 14:15 |
Network Sites: GIDNetwork · GIDWebHosts · GIDSearch · Learning Journal by J de Silva, The