fatal error while trying to send message using twilio
<p>I got this fatal error while using twilio been working at it for 2 hours still cant figure it out</p>

<p><code>Fatal error: Uncaught exception 'Twilio\Exceptions\RestException' with message '[HTTP 400] Unable to create record' in /membri/deathcrow/server/sms/twilio-php-master/Twilio/Version.php:87 Stack trace: #0 /membri/deathcrow/server/sms/twilio-php-master/Twilio/Version.php(207): Twilio\Version-&gt;exception(Object(Twilio\Http\Response), 'Unable to creat...') #1 /membri/deathcrow/server/sms/twilio-php-master/Twilio/Rest/Api/V2010/Account/MessageList.php(63): Twilio\Version-&gt;create('POST', '/Accounts/ACa81...', Array, Array) #2 /membri/deathcrow/server/sms/que.php(25): Twilio\Rest\Api\V2010\Account\MessageList-&gt;create(Array) #3 {main} thrown in /membri/deathcrow/server/sms/twilio-php-master/Twilio/Version.php on line 87</code></p>

<p>here is my full page coding I have hidden the sid,token, and numbers for security reasons</p>

<pre class="lang-php prettyprint-override"><code>&lt;?
 require_once ("../connect.php");
 require __DIR__ . '/twilio-php-master/Twilio/autoload.php';
 use Twilio\Rest\Client;
 ignore_user_abort (true);
 $sql = "SELECT * FROM smsque ORDER BY id ASC LIMIT 1";
 $query = mysql_query ($sql);
 $row = mysql_fetch_object ($query);

 $id = $row-&gt;id;
 $msg = $row-&gt;message;
 $amount = $row-&gt;amount;
 $reciever = $row-&gt;reciever;

 $headers = 'From: noReply@anon.com';

// Your Account SID and Auth Token from twilio.com/console
$sid = '******************';
$token = '*************';

$client = new Client($sid, $token);
$client-&gt;account-&gt;messages-&gt;create(array(
  "From" =&gt; "**********",
  "To" =&gt; "*******",
  "Body" =&gt; "Test!"));

    //mail ($to, '', $msg, $headers);

 $amount--;

 if ($amount &gt;= 1){
  $sql2 = "UPDATE smsque SET amount='$amount' WHERE id='$id'";
  $query2 = mysql_query ($sql2);
 }else {
    $sql2 = "DELETE from smsque WHERE id='$id'";
     $query2 = mysql_query ($sql2);
 }
?&gt;
</code></pre>