petenaylor Posted December 4, 2009 Share Posted December 4, 2009 Hi all I'm trying to echo out a link like this: <a href="send_text.php?phone_number=<?php echo $row_RS_customer_data['mobile_number']; ?>">Click here to send this customer a Text Message</a> Only I want it to already be in the php code just after this line: <?php if (!empty($row_RS_customer_data['mobile_number'])) { I know to use concatenate but how? I have tried separating with quotes but it won't work! Many thanks Pete Link to comment https://forums.phpfreaks.com/topic/183999-create-a-link-after-empty/ Share on other sites More sharing options...
mikesta707 Posted December 4, 2009 Share Posted December 4, 2009 <?php if (!empty($row_RS_customer_data['mobile_number'])) { echo '<a href="send_text.php?phone_number='.$row_RS_customer_data['mobile_number'].'">Click here to send this customer a Text Message</a>'; //ect... like that? Link to comment https://forums.phpfreaks.com/topic/183999-create-a-link-after-empty/#findComment-971385 Share on other sites More sharing options...
petenaylor Posted December 4, 2009 Author Share Posted December 4, 2009 Brilliant! Thanks very much! Link to comment https://forums.phpfreaks.com/topic/183999-create-a-link-after-empty/#findComment-971391 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.