[PHP-DB] Executing SQL query with ODBC

2004-11-09 Thread Petrus Ali Saputra
Here is my code:
$conn = odbc_connect(Ta Fara,,);
$query = SELECT * FROM Config;
$result = odbc_exec($conn, $query);
echo odbc_num_rows($result);
This code never give me a 0 result even there is some data. How can I 
solve it? Thank you.
--
Petrus Ali Saputra
==
Addr. : Karang Empat Besar 76
Surabaya 60133
East Java, Indonesia
Phone : 62-31-381-7866
62-31-6010-2653
62-81-23000-254
--
A professional web hosting for your business and corporate
URL   : http://attractive.as/hostmania
--
Mau kredit mobil baru/bekas dengan bunga rendah?
URL   : http://fantastic.as/kreditmobil

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Help me please

2004-11-08 Thread Petrus Ali Saputra
Arné klopper wrote:
Have you set up a ODBC connection ?
 
You must set up a ODBC connection in the ODBC Sources that is usually in you Control Panel or Administrator Tools.
 
You must put it as a System DNS and set up the connection, so your local system know where to find the database.
 
I already have and it's been tested from Delphi before. There's no 
problem with the connection from Delphi.

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Help me please

2004-11-08 Thread Petrus Ali Saputra
Bastien Koert wrote:
have you created a dsn for this connection?
Bastien
From: Petrus Ali Saputra [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Help me please
Date: Mon, 08 Nov 2004 10:55:45 +0700
Can anyone here help me how to connect to an ODBC data?
Here is my code: $odbc = odbc_connect(Ta Fara,,);
And this is the result: Warning: odbc_connect(): SQL error: 
[Microsoft][ODBC Driver Manager] Data source name not found and no 
default driver specified, SQL state IM002 in SQLConnect in d:\my 
documents\my webs\projects\ta fara\main\admin\config.php on line 2

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Problem solved. Thanks for the help.
--
Petrus Ali Saputra
==
Addr. : Karang Empat Besar 76
Surabaya 60133
East Java, Indonesia
Phone : 62-31-381-7866
62-31-6010-2653
62-81-23000-254
--
A professional web hosting for your business and corporate
URL   : http://attractive.as/hostmania
--
Mau kredit mobil baru/bekas dengan bunga rendah?
URL   : http://fantastic.as/kreditmobil
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] Help me please

2004-11-07 Thread Petrus Ali Saputra
Can anyone here help me how to connect to an ODBC data?
Here is my code: $odbc = odbc_connect(Ta Fara,,);
And this is the result: Warning: odbc_connect(): SQL error: 
[Microsoft][ODBC Driver Manager] Data source name not found and no 
default driver specified, SQL state IM002 in SQLConnect in d:\my 
documents\my webs\projects\ta fara\main\admin\config.php on line 2

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP-DB] Re: Accessing Matisse DB

2004-09-23 Thread Petrus Ali Saputra
Robert Twitty wrote:
Is there anyone here can tell me how to access Matisse DB? Thank you.
Isn't there anyone can help me?

Look at http://www.matisse.com/pdf/developers/php.pdf
I found it by Googling for Matisse PHP
I have. But it doesn't help much. Thanks anyway.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] Re: Accessing Matisse DB

2004-09-15 Thread Petrus Ali Saputra
Petrus Ali Saputra wrote:
Is there anyone here can tell me how to access Matisse DB? Thank you.
Isn't there anyone can help me?
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[PHP-DB] Accessing Matisse DB

2004-09-14 Thread Petrus Ali Saputra
Is there anyone here can tell me how to access Matisse DB? Thank you.
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php