success with firebird from CLI only

16 views
Skip to first unread message

mariuz

unread,
Jul 20, 2009, 6:21:04 PM7/20/09
to SQL Query Tester
I have downloaded the latest adodb from sf.net

http://dfn.dl.sourceforge.net/sourceforge/adodb/adodb509a.tgz

and did an overwrite for the version imported in svn
in config.php added an firebird db


c['db-config1'] = array
(
'host' => 'localhost',
'type' => 'firebird',
'username' => 'sysdba',
'password' => 'masterkey',
'database' => '/var/lib/firebird/2.1/data/employee.fdb'
);


in ajax.query.inc.php i have adde two variables to test it from
command line
$_POST['sql'] = "SELECT * FROM EMPLOYEE ";
$_POST['c']="db-config1";
also added debug mode after connection is made

$db = ADONewConnection($dsn);
$db->debug = true;

php ajax.query.inc.php
-----<hr>
(firebird): SELECT a.EMP_NO, a.FIRST_NAME, a.LAST_NAME, a.PHONE_EXT,
a.HIRE_DATE, a.DEPT_NO, a.JOB_CODE, a.JOB_GRADE, a.JOB_COUNTRY,
a.SALARY, a.FULL_NAME FROM EMPLOYEE a

-----<hr>
<TABLE COLS=11 BORDER='1' WIDTH='98%'><tr>

<TH>EMP_NO</TH><TH>FIRST_NAME</TH><TH>LAST_NAME</TH><TH>PHONE_EXT</
TH><TH>HIRE_DATE</TH><TH>DEPT_NO</TH><TH>JOB_CODE</TH><TH>JOB_GRADE</
TH><TH>JOB_COUNTRY</TH><TH>SALARY</TH><TH>FULL_NAME</TH>
</tr>

<TR valign=top>
<TD align=right>2</TD>
<TD>Robert</TD>
<TD>Nelson</TD>
<TD>250</TD>
<TD>Wed 28, Dec 1988, 00:00:00</TD>
<TD>600</TD>
<TD>VP</TD>
<TD align=right>2</TD>
<TD>USA</TD>
<TD align=right>105900</TD>
<TD>Nelson, Robert</TD>
</TR>

feketegy

unread,
Jul 21, 2009, 2:03:28 AM7/21/09
to SQL Query Tester
I will update the script, thanks for the help...

mimmo

unread,
Jul 22, 2009, 7:01:20 AM7/22/09
to SQL Query Tester
To have success on AJAX, you need to configure also assets/js/qt.js
In the very first few lines baseUrl need to be configured to match
your installation directory.

marius adrian popa

unread,
Jul 22, 2009, 7:17:26 AM7/22/09
to sql-quer...@googlegroups.com
Ok thanks man :) , we can make an small article with it
And i guess we can join the project

>
> >
>

feketegy

unread,
Jul 22, 2009, 7:24:51 AM7/22/09
to SQL Query Tester
You are more than welcome to join this project, because I don't really
have the necessary time to work on the script and I sure need some
help!

On Jul 22, 2:17 pm, marius adrian popa <map...@gmail.com> wrote:

marius adrian popa

unread,
Jul 22, 2009, 8:13:09 AM7/22/09
to sql-quer...@googlegroups.com
ok add please mapopa user if you want
>>
>>
> >
>
Reply all
Reply to author
Forward
0 new messages