i want some code to connect to the mysql
Also, one thing to check, and check now as it will save you time. Did you actually install the MySQL components of PHP? Have you installed php? I spent ages helping someone the other day and then discovered that PHP wasn't installed.
So please check these tiems by running a small php file:
[php]
<?php
phpInfo();
?>
[/php]
Sorry to be patronising, but it's best to check the fundamentals are in place.
Cheers
nathj
PS. When I first started with PHP and MySQL I didn't realise there was a specific step during the PHP install process, so my own experience leads to this question.