Hello
I would like to place all my database connectivity code in one file and i would like to include this file in all my other programs.
<?php
//Data base details
$username = "SYSDBA";
$password = "masterkey";
$connection = @ibase_connect('localhost:C:\work\MYDATABASEISD.GDB', $username, $password);
if (!$connection)
{
exit ("Unable to connect to database: $connection");
}
$db = 'Select * from TBL_CUSTOMER';
$bsc = ibase_query($connection, $db);
while ($row = ibase_fetch_row($bsc)) {
$test=$row[8];
}
?>
and
<input type="text" name="tftp_server" value = "<? echo $row[8]; echo $test; ?>">
So, till what lines of code, i want to put it in a separate file?
thanks for your help