Microsoft Word - Core PHP Programming Using PHP to Build Dynamic Web Sites

(singke) #1

}


// data rows
$Rows = sybase_num_rows($Result);
for($n = 0; $n < $Rows; $n++)
{
print("\n");


for($i = 0; $i < $Fields; $i++)
{
print("");
print(sybase_result($Result, $n, $i));
print("\n");
}


print("\n");
}


print("\n");


sybase_free_result($Result);


sybase_close($Link);
?>


boolean sybase_select_db(string database, integer connection)


The sybase_select_db function selects the database to use on the database server. If the
connection argument is omitted, the last connection created will be used. See
sybase_fetch_array for an example.

Free download pdf