Re: [PHP] Re: Not getting expected result from file()

2007-06-11 Thread Richard Lynch
trim is probably sub-optimal, as you MIGHT have leading/trailing whitespace as part of the actual data at some point. You should trim off ONLY one last newline character, no more, no less. I dunno why it's not working still though... On Mon, June 11, 2007 12:14 am, kvigor wrote: > OK, I trimmed

Re: [PHP] Re: Not getting expected result from file()

2007-06-11 Thread Frank Arensmeier
If you are not able to get anything into your DB (and your connection is ok), then two things might be wrong: your input or the query string itself. Echo out the query string and try to use the query "manually" (directly with a MySQL client). If the query string is ok, you might check you

Re: [PHP] Re: Not getting expected result from file()

2007-06-10 Thread Jim Lucas
kvigor wrote: Sorry I re-wrote for problem clarity. FYI whenever I do a var_dump it always shows $stringOne as being 2 characters less e.g. var_dump($foodlandPA[45]); var_dump($storeInfo); string(31) "Wellston Foodland Wellston OH " string(29) "Wellston Foodland Wellston OH" This would be