How to insert the first letter in uppercase [closed]

I think this should do the job

<?php echo ucfirst(get_the_title()) .' - '.get_post_type( get_the_ID() ) ;?>

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)