Closed Hussein-ipc closed 4 years ago
Hi Hussein!
Let's take it one step at a time!
It seems you've defined sendSMS like this
function sendSMS ($variable, $variable, $variable) { ... }
on line 43 in the file:
sms_verify.php
When you run sendSMS, it's expecting you to enter 3 arguments, but you're giving it one.
Try commenting out the line 43 in sms_verify.php and then try again!
`<?php
include "../db.php";
//$_POST['command'] ;// $command = $_POST['command']; if ($command == "register_user") {//register user $mobile = $_POST['mobile']; $token = $_POST['token']; $sql = "SELECT * FROM tbl_user where mobile ={$mobile}"; $result = mysqli_query($connection, $sql); $num = mysqli_num_rows($result);
if ($command == "verify_code") {//
}
?> `
I try pass two variable $mobile and $code into $ sms but I appea with Error. Can someone help why I get This Error.