user26456: $bitcoin->sendfrom($this->session->userdata('account'), $_POST['address'], number_format($_POST['amount'], 8));
but this isn't working. i got everything via json-rpc. but can't send or move money using  json-rpc. what is the problem?

user26873: The suggested library for Bitcoin JSON-RPC via PHP is the EasyBitcoin-PHP library. Source
Here's a simple example:
<?php 
require("easybitcoin.php");

//authenticate
$bitcoin = new Bitcoin("RPCusername", "RPCpassword"); 

//execute ternary command
$send = $bitcoin->sendtoaddress("1SomeBitcoinAddy", 1); 
echo $send ? $send : "Oops an error: ".$bitcoin->error;   
?> 

The first argument for sendtoaddress() is the address you want to send funds to, the second is the amount in whole bitcoins. 

26456: <p><code>$bitcoin-&gt;sendfrom($this-&gt;session-&gt;userdata('account'), $_POST['address'], number_format($_POST['amount'], 8));</code></p>

<p>but this isn't working. i got everything via json-rpc. but can't send or move money using  json-rpc. what is the problem?</p>
 26873: <p>The suggested library for Bitcoin JSON-RPC via PHP is the <a href="https://github.com/aceat64/EasyBitcoin-PHP" rel="nofollow noreferrer">EasyBitcoin-PHP</a> library. <a href="https://en.bitcoin.it/wiki/API_reference_(JSON-RPC)#PHP" rel="nofollow noreferrer">Source</a></p>

<p>Here's a simple example:</p>

<pre><code>&lt;?php 
require("easybitcoin.php");

//authenticate
$bitcoin = new Bitcoin("RPCusername", "RPCpassword"); 

//execute ternary command
$send = $bitcoin-&gt;sendtoaddress("1SomeBitcoinAddy", 1); 
echo $send ? $send : "Oops an error: ".$bitcoin-&gt;error;   
?&gt; 
</code></pre>

<p>The first argument for <code>sendtoaddress()</code> is the address you want to send funds to, the second is the amount in whole bitcoins. </p>
