[ previous ] [ next ] [ threads ]
 To :  Yate mailing list <yate@v...>
 From :  Jamie Gordon <jamie@d...>
 Subject :  Re: [yate] Execute Postgresql Query on Ext Module (php )
 Date :  Fri, 6 Oct 2017 22:10:50 +0100
Hi Ganapathi,

Without seeing the rest of your script, which may explain the reason ...

why not use the standard PHP database tools instead of involving YATE ?

For example PDO ?




On 06/10/2017 21:35, Ganapathi Chidambaram wrote:
> 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
>
>

-- 


Jamie Gordon

Office: +44 (0)330 3310810
Mobile: +44 (0)781 7639737
http://www.digitallines.net



Digital Lines Limited's registered office is Snappers, Church Road, Rudgeway, Bristol BS35 3SH. Registered in England, number 05293518

***************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify the system manager.




Hi Ganapathi,

Without seeing the rest of your script, which may explain the reason ...

why not use the standard PHP database tools instead of involving YATE ?

For example PDO ?




On 06/10/2017 21:35, Ganapathi Chidambaram wrote:
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



-- 


Jamie Gordon

Office: +44 (0)330 3310810
Mobile: +44 (0)781 7639737
http://www.digitallines.net



Digital Lines Limited's registered office is Snappers, Church Road, Rudgeway, Bristol BS35 3SH. Registered in England, number 05293518

***************************************************************************************************************
This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify the system manager.