So just mucking around with a SMS sending page.
I do a SQL query to get the "message body"...
$smsSql = mysqli_query($conn, "SELECT * FROM `sms_msg` WHERE id='1'");
$smsData = mysqli_fetch_array($smsSql);
And then load the message itself in to a variable just to make it tidy for me going forward:
[code]$message = $smsData['msg'];[/code]
So if you were to echo $message it would print:
Hi $name, This is a test message. I have also sent an email to $email
So further up in the script I have already defined the $name, and $email variables. And when i send the message, I would like the values of $name & $email to be printed in that $message string.
To send the message I do this...
$result = $api->sendSms($message,$mobile);
Do I need to do a find/replace sort of thing? Or is there some kind of cool easy way with some special brackets/quotes/characters that will just magically re-write that message string for me.
I have no idea what to google, so am failing miserably.

