do not worry. Here's ur savior. In most places u will see recompiling php with mysql. Or some problem in php.ini if u r running php4. The alternate solution is to load mysql dynamicly in your scripts by inserting
dl("mysql.so");
at the beginning of ur php script.
so it will be
<?
dl("mysql.so");
if (!(....
?>