mysql - PHP Mysqli request Url after a query is finished -


i trying request url or api in php after fetch query completed unable

as below api follows

1.url
2. username default not change
3. password same username
4. sender id same username , password
but every things matter url should wait till php result fetched
5. phone number php fetch result $numstr
6. text of our own 7. priority & smstype of our own not change

$query="select  num euser userid in (select id master          aa='aa' , cc='cc')" ; $data=mysqli_query($mysqli,$query)or die(mysqli_error()); $num = array(); while($row=mysqli_fetch_array($data)){     if($row['num'] != '' && $row['num'] != null){       $num[] = $row['num'];                               }                               } $numstr = implode(',', $num);   echo $numstr;  mysqli_close($mysqli); 

api
http://test.forsms.com/api/sendmsg.php user=*******&pass=********&sender=*****&phone=&text=test sms&priority=priority&stype=smstype

try

$url = "http://test.forsms.com/api/sendmsg.php?user=".$usernamesms."sclage&pass=".$password."&sender=".$senderid." id&phone=".$phonenumber."&text=".$text."&priority=".$smstype."&stype=".$priority."";         header("location: $url"); 

to redirect url, providing no 'output' has been sent browser, use header("location: -url- "); replacing -url- required url string.

$url = "http://test.forsms.com/api/sendmsg.php user=*******&pass=********&sender=*****&phone=&text=test sms&priority=priority&stype=smstype"; header("location: $url"); exit; 

Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -