Re: :: Problems With Interbase :: Please Help ::
| From: | Daniel Barton | Date: | Sat, 15 Dec 2001 02:14:45 +0000 |
| Subject: | Re: :: Problems With Interbase :: Please Help :: | ||
| References: | 1 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-15050@lists.php.net to get a copy of this message | ||
Vins,
Have you tried sticking the path of the database relative to the server
root in there?
like: /home/vins/interbase_data/NAMES.GDB
or: /var/interbase_date/NAMES.GDB
etc. ?
-db
Vins wrote:
> Hi.
> I need help with Interbase.
> Here is my script...
>
> *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
>
> <?php
> $database = "../../interbase_data/NAMES.GDB";
> $username = "ADMIN";
> $password = "********";
>
> $dbh = ibase_connect ($database, $username, $password);
> $stmt = 'SELECT * FROM name';
> $sth = ibase_query ($dbh, $stmt);
> while ($row = ibase_fetch_object ($sth)) {
> echo
> $row["first"]." ".$row["last"]."<BR>\n";
> }
> ibase_close ($dbh);
> ?>
>
> *~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*~*
>
> The php manual says that the $database variable must be the full path the
> database file if it's location is on the localhost.
> Now as you can see i've done that but i keep getting this dumb messages
> saying "Undefined Database".
> Please could any one help me.
> I have no clue what to do.
> I've been sitting for 2 days now and I've finally turned to the newsgroup.
> Please Please.
>
> Thanx
> Vins
> vins@webonline.co.za
> Text Me: +27721807050
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net
> For additional commands, e-mail: php-db-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
--
----------
Dan Barton
Terrestrial Program Biologist
Asst. Data Manager
Point Reyes Bird Observatory
http://www.prbo.org
dbarton@prbo.org
dbarton@grayflycatcher.org