Topic awaiting preservation: Beginner search engine php question (Page 1 of 1) |
|
---|---|
Obsessive-Compulsive (I) Inmate From: |
posted 03-03-2003 07:32
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 |
posted 03-03-2003 08:54
Line 30 ' mysql_select_db("radio") ' |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 03-03-2003 14:11
AT: Good call - I know its one of my failings too. |
Maniac (V) Mad Scientist From: :morF |
posted 03-03-2003 15:49
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 |
posted 03-03-2003 16:03
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: |
posted 03-03-2003 19:19
Hi there all, |
Maniac (V) Mad Scientist with Finglongers From: Cell 53, East Wing |
posted 03-03-2003 19:40
shattered: I might be missing some cunning tweak but why is your array empty here?: quote:
|
Obsessive-Compulsive (I) Inmate From: |
posted 03-04-2003 00:26
Hi Emperor, quote:
quote:
|
Paranoid (IV) Inmate From: Den Haag, Netherlands |
posted 03-04-2003 07:58
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 ... |