|
Web design and Programming Discuss website creation and other programming topics. |
![]() |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
||
|
Parse Error
I keep on getting a parse error on this line:
PHP Code:
|
#2
|
||
|
Parse error: parse error, unexpected T_STRING in /www/htdocs/zp/phptest/index.php/index.php on line 22
That's the parse error |
#3
|
||
|
it may not be that line spifically, and im still a newbie to php but try
PHP Code:
|
#4
|
||
|
thanks that got me past a few errors.
|
#5
|
||
|
A lil tut...
If you are using a function (like mysql_query) you need to start the function off with a ". Unless it's a variable already set in php. mysql_query(select * From); Will give a phrase error. mysql_query("select * From"); Will not. Unless you are using something like this: $query="SELECT * FROM"; mysql_query("$query"); or mysql_query($query); will work.. Same goes with other functions, mkdir(Folder); will not work, mkdir("Folder"); will work. $folder="Folder"; mkdir("$folder"); or mkdir($folder); will work.. In some instances this will not work, with like the empty function, it cannot have any "'s in it. empty("$result"); will give a phrase error. empty($result); will not.
__________________
![]() 04' Dodge SRT-4, Mopar Stage 3, 406whp/436wtq |
![]() |
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
DFLW Swapfile error fix error | Hellfighter | Tech Support | 0 | 02-29-2008 03:35 AM |
installing DFBHD, I get an error, “An error occurred during the move data process.” | Steve | Delta Force | 1 | 01-09-2007 04:54 AM |
Parse Me! | atholon | Web design and Programming | 12 | 07-01-2005 11:53 PM |
If your getting an error with Team Speak with the Richedit Line Insertion Error READ | .DareDevil. | Hardware and Software | 0 | 09-29-2004 03:50 PM |
PARSE ERROR!!!! help plz | BeBop | Web design and Programming | 4 | 04-05-2003 10:28 AM |