unemployment Posted June 30, 2011 Share Posted June 30, 2011 Is this syntax wrong? echo '<a href="../u/' .$r['feedusername']. '">' .ucwords($r['feedfirstname'].' '.$r['feedlastname']). '</a> has updated ' .($r['gender'] == 1) ? 'his ': 'her '; echo ' credentials'; Link to comment https://forums.phpfreaks.com/topic/240794-no-error-but-syntax-fails/ Share on other sites More sharing options...
EdwinPaul Posted June 30, 2011 Share Posted June 30, 2011 Yes. This works: <?php echo '<a href="../u/'.$r['feedusername']. '">'.ucwords($r['feedfirstname'].' '.$r['feedlastname']).'</a> has updated '; echo ($r['gender'] == 1) ? 'his ': 'her ';echo ' credentials'; ?> Link to comment https://forums.phpfreaks.com/topic/240794-no-error-but-syntax-fails/#findComment-1236777 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.