Updating mysql functions for php.