Jump to content

Create a link after !empty


petenaylor

Recommended Posts

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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.