in_category and Replace

Hi

I want to run this code but is not work. I want to change the title for diffrent category.

<?php
if (in_category(7754) ) {

echo '<h3 style="padding:0 0 4px 38px;color:#999;background:url("htt://mutfaksirlari.com/CarteDor/baslik_uzun.png") repeat-x scroll left top transparent">'<?phpthe_title();?>'</h3>';

} else {

echo '<h3 style="padding:0 0 4px 38px;;color: #999;" class="greensingle">'<?phpthe_title();?>'</h3>';
}
?>

i think problem is <?phpthe_title();?>. What can i do to work this code.

Thank you