![]() |
|
|||||||
|
|
Thread Tools | Search this Thread |
Rating:
|
|
#31
|
||||
|
||||
Re: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING'Quote:
You're Welcome. Mark BTW, welcome to GIDForums™. You were clear about your problem and used code tags. Makes it easy to help. __________________
"A happy person is not a person in a certain set of circumstances, but rather a person with a certain set of attitudes." --Hugh Downs Stories from the NICU Blog |
||||
|
#32
|
|||
|
|||
Re: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' inyeah im used to forums.
|
|
#33
|
|||
|
|||
Re: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' inhi,
i'm new to this forum. i'm trying to install a script which gives me same error expecting Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' in line 585 $output = '<?php $license="' . $_REQUEST['licensekey'] . '"; <THIS IS LINE 585> $db_host = "' . $_REQUEST['dbhost'] . '"; $db_username = "' . $_REQUEST['dbusername'] . '"; $db_password = "' . $_REQUEST['dbpassword'] . '"; $db_name = "' . $_REQUEST['dbname'] . '"; $cc_encryption_hash = "' . $str . '"; |
|
#34
|
||||
|
||||
Re: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' inKnow that the error could also exist BEFORE the point where the parser thinks it happened.
Look at the line before 585. The 'output' assignment appears to be incomplete. From the way it looks, that line should actually appear like this: PHP Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#35
|
|||
|
|||
Re: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' inI,m also new in programming in PHP and I have problems with error like in subject in this topic.
I've made search form and search.php file which should do the work of searching table "roba" against column "naziv" in my MySQL database. Here is the code of search.php file. PHP Code:
This is simple source of search form (if needed). HTML Code:
After entering and submiting serach word I get error Code:
I would appreciate if anyone could check the syntax of search.php and tell me what should be changed to make it work. The problem is probably very trivial but as I said, I new in this so please have understanding Thanks in advance. Last edited by admin : 23-Jan-2010 at 01:32.
Reason: Please insert your example PHP codes between [PHP] and [/PHP] tags
|
|
#36
|
||||
|
||||
Re: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' inTake a close look at this line:
PHP Code:
PHP Code:
HTH __________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#37
|
|||
|
|||
Re: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' inThanks for instruction for SQL query. That solved problem with error and I also tried to make some other modification inside source code of search.php but now I don't get eny error nor search result after submiting search term.
I think it's important to mention that coloumn "roba" is primary key of table which is also called "roba". After trying to submiting search without any term I doesn't get notification "Please enter a search query" which should be displayed in that case. It obviously have something to do with curly braces that you mentioned in previous post. Here is code after saved modifications. PHP Code:
Any suggestion what to change. |
|
#38
|
||||
|
||||
Re: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' inNo, there should be no issues with the curly braces...
I'm not clear how this is used? PHP Code:
__________________
Use the force...read the source!! WYCIWYG -- what you code is what you get! |
|
#39
|
|||
|
|||
Re: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' inI found instructions how to use this code on http://www.webreference.com/programming/php/search/index.html and I just tried to customize code for my database but I can't make it work.
It would be best that you read the instructions and see explanation on using "if(isset($_GET['go']))". |
|
#40
|
|||
|
|||
Re: Parse error: parse error, expecting `T_STRING' or `T_VARIABLE' or `T_NUM_STRING' inIn search form, I've made correction of this line
Code:
which uses "if(isset($_GET['go']))" line in search.php file. After this change (when search term is submited) I'm getting error Code:
|
Recent GIDBlog
Compress Your Web Site by gidnetwork
| Thread Tools | Search this Thread |
| Rate This Thread | |
|
|
Network Sites: GIDNetwork · GIDApp · GIDSearch · Learning Journal by J de Silva, The