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