Search/results page problem
Posted 16 September 2004 - 09:44 AM
I am having trouble getting my results page to display any search results at all. I have followed numerous tutorials and Dreamweaver displays the database records via the Advanced Recordset 'test' button, but when I perform a search using the actual form the following error appears:
Parse error: parse error, unexpected T_STRING, expecting T_VARIABLE or '$' in d:\web\results.php on line 11
I have checked line 11 and can see no reason why this is happenning. I am new to building search/results pages so if anyone can point me to a tutorial that works (preferably a step by step guide) or help me in any way with this, would be very much appreciated!
Posted 16 September 2004 - 01:58 PM
Posted 16 September 2004 - 05:50 PM
Well first of all I have noticed that when you go to www.yoursite.com and see an error page saying that the error is on line 11 and you check line 11 in the code they do not mach up. At lease using DreamWeaver.
I would delete the record set and make it new from scratch. I have noticed this will fix most of the bad code problems, also I have noticed with dreamweaver that if you keep on playing with a record set it will mess it up sooner or latter and you will get that message.
What are you trying to do? Do you have a simple page with a form submitting to a PHP page to look up a record? Also use the Simple record set view, you do not need the advanced for looking up a simple record by one criteria You will just confuse your self using the advanced. If you are looking up a record by more than one criteria you then you would need to use the advanced and put in a SQL statement. Since I see no SQL error I don’t think that is the case. What are you trying to look up?
Posted 17 September 2004 - 01:39 PM
I only need this thing to look up specific names that are entered by the user and then have the db bring up the name along with other info in the db.
I will try the simple version though, as i was jumping in the deep end to begin with. I will post here if i still have problems...thanks again!
Posted 17 September 2004 - 01:45 PM
Maybe I have configured the search page incorrectly? I have followed a few tutorials now but am getting nowhere.
Posted 17 September 2004 - 11:31 PM
0 user(s) are reading this topic
0 members, 0 guests, 0 anonymous users