PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
Variables aren't validated inside single quotes, so you're sending $row["monumber"] (ie. the actual string) rather than the value it contains. Try like this:
The error message specifically complains about the phone number, so the date doesn't factor into it. I've been looking through their documentation but it's not terribly helpful. I have noticed the country code is included in all their examples, though.
Not being able to do it in one go isn't a problem. What's a problem is you're saving the modified value to a variable, then stripping the space from the $row value.
I think you'd need to contact them at this point. That looks like a valid number to me. They're complaining it's not an integer, so you could try casting to int.
I don't see any value in making changes to things in the database until you can get this to work reliably.
I'd have to see the entire code. If you're making all the modifications to $mobnumber and passing $row['mobnumber'] to your sendSMS function, for example, then of course it's going to fail.
You can save it as 44... in the DB if you like, but that's not why it's working/not working. You're making the modifications to $mobnumber but passing $row['mobnumber'] into the sendSMS function.