![]() Topic awaiting preservation: Beginner search engine php question (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
![]() Hi, I'm doing a search engine using PHP for a project and I keep getting "Parse errors on line 34" . Can anyone help me fix this particular error or any other errors that you see? Thank you very much! |
Bipolar (III) Inmate From: Louisville, KY, USA |
![]() Line 30 ' mysql_select_db("radio") ' |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() AT: Good call - I know its one of my failings too. |
Maniac (V) Mad Scientist From: :morF |
![]() I beleive it's the line before emps, since it reads the error as occuring on the start of the line, and it counts the command after as being on the same line. |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() Skaarrjj: What I meant is that the error (e.g. line 35) actually gives the number of the line after the line with the actual error. |
Obsessive-Compulsive (I) Inmate From: |
![]() Hi there all, |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
![]() shattered: I might be missing some cunning tweak but why is your array empty here?: quote:
|
Obsessive-Compulsive (I) Inmate From: |
![]() Hi Emperor, quote:
quote:
|
Paranoid (IV) Inmate From: Den Haag, Netherlands |
![]() 3."Fatal error: Cannot instantiate non-existent class: dbi in /home/omis107/search.php on line 31" quote: Well I'd be more inclined to guess that a CONCATENATION operator needs TWO strings to concatenate together, and even if $match_a[] = "fred" works (straight assignment) ... $match_a[1] .= "fred" would probably fail because the (implied) first operand is null (i.e to start, $match_a[] is undefined until assigned a value). Try dropping the dot ... |