read ESR's smart questions.
Does `hello world' in PHP work? Does manually inserting data into your DB work (i.e. w/o apache/php)? Does manually fetching (i.e. reading) data work? From PHP too?
Post your apache, php and mysql config where relevant, and post the script.
Since it may be quite long, you may want to post links to them instead.
Best of luck --Jonas