Displaying 4 results from an estimated 4 matches for "odbc_connect".
Did you mean:
db_connect
2007 Jan 10
2
Get dialed numbers in AGI
...n PHP to get the numbers dialed (with read()),
save it into a variable to insert it into a SQL server database. But I
cannot see results into the variable, it always return NULL.
Here is a piece of the AGI.
fwrite(STDOUT,"exec Read my_var|/sound_to_play|5|||15 \n");
fflush(STDOUT);
$conn=odbc_connect('MSSQL', 'USER', 'PASS');
$query = odbc_exec($conn, "INSERT INTO dialed(number) VALUES('$my_var')");
Even if I only show my_var value or try to use it inside asterisk, the value
is NULL.
There is another way to do it? Am I doing a mistake here?
I'm usi...
2006 Jun 07
3
PHP UnixODBC MS SQl 2000
...ndows 2003 Server on remote location.
I tested connectivity through isql and tsql, both utilities are working
fine.
I need to access MS SQL 2000 Database through PHP. When I tired to check the
connectivity through a Test PHP file I got following results:
Fatal error: Call to undefined function: odbc_connect() in
/var/www/html/odbctest.php on line 3
By Default PHP was configured with following switches:
'./configure' '--build=i686-redhat-linux-gnu' '--host=i686-redhat-linux-gnu'
'--target=i386-redhat-linux-gnu' '--program-prefix=' '--prefix=/usr'
'...
2006 Sep 07
0
Need help with accessing MS SQL Server from Mac OS X
...ere I get an error. The
errors are:
iODBC Demonstration program
This program shows an interactive SQL processor
Driver Manager: 03.52.0001.0928
1: SQLDriverConnect = [iODBC][Driver Manager]Data source name not found
and no default driver specified. Driver could not be loaded (0)
SQLSTATE=IM002
1: ODBC_Connect = [iODBC][Driver Manager]Data source name not found and
no default driver specified. Driver could not be loaded (0)
SQLSTATE=IM002
I found that the help, at the link above, specifies to edit two files
(odbc.ini and odbcinst.ini) in the /Library/ODBC folder. This folder
does not exist on my system...
2007 Jan 12
4
FW: Get dialed numbers in AGI
On 1/11/07, Mike D'Ambrogia <miked@jamagination.com> wrote:
>
> Ralph
>
> Kind of new to asterisk, and really new to AGI but it looks like you were
> trying to have the AGI script tell asterisk to read and lay the results into
> my_var and then regain control in the AGI script, is that correct?
>
> If so I don't think that will work since the dialplan