Help!!!
I am trying to connect my sybase database to apache with PHP, I think I am being very dull, but every time I do my select statement all I get returned is the first entry in the first field. I presume that it is to do with the sybase_result line.
Is there an easy way to get the sybase_result statement to pass the output directly or does php require the sybase_result.
< Code Below >
<?php
$db_connect= sybase_connect("localhost" , "sa" , "password" );
$result=sybase_query("select * from pubs2..titles",$db_connect );
$db_result=sybase_result($result,0,0);
echo $db_result;
sybase_close($db_connect);
?>
Any pointers or help appreciated.
Thanks
I am trying to connect my sybase database to apache with PHP, I think I am being very dull, but every time I do my select statement all I get returned is the first entry in the first field. I presume that it is to do with the sybase_result line.
Is there an easy way to get the sybase_result statement to pass the output directly or does php require the sybase_result.
< Code Below >
<?php
$db_connect= sybase_connect("localhost" , "sa" , "password" );
$result=sybase_query("select * from pubs2..titles",$db_connect );
$db_result=sybase_result($result,0,0);
echo $db_result;
sybase_close($db_connect);
?>
Any pointers or help appreciated.
Thanks