[ previous ] [ next ] [ threads ]
 To :  "Yate mailing list" <yate@v...>
 From :  "Ganapathi Chidambaram" <ganapathi.rj@g...>
 Subject :  Execute Postgresql Query on Ext Module (php )
 Date :  Fri, 06 Oct 2017 20:35:49 +0000
Hi
As i am trying to execute the PostgreSQL Query on external script(php) like mentioned below. But it doesn't look like executing as per the flow/logging.
PHP :
$m = new Yate("database");
$m->account = "db";

$m->query = "SELECT num from users where num = '$num'";
$m->Dispatch();
if( $m->rows > 0 ) return true;
Regards,
Ganapathi



Hi

As i am trying to execute the PostgreSQL Query on external script(php) like mentioned below. But it doesn't look like executing as per the flow/logging.

PHP :

$m = new Yate("database");
$m->account = "db";
$m->query = "SELECT num from users where num = '$num'";
$m->Dispatch();
if( $m->rows > 0 ) return true;


Regards,
Ganapathi