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'; Quote 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'; ?> Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.