The code that ivatanako has given you is probably as simple as you can get. It will allow you to connect to your database and run a query. You can extend it if you need, but I can't see how it could be simplified further as you need those steps to be able to do anything in mysql and php.
darkagn 315 Veteran Poster Featured Poster
lonestar23 commented: Great Coder! +2
darkagn 315 Veteran Poster Featured Poster
darkagn 315 Veteran Poster Featured Poster
darkagn 315 Veteran Poster Featured Poster
darkagn 315 Veteran Poster Featured Poster