Re: Re: someone please explain weird getforeignkeys
| From: | Richard Lynch | Date: | Fri, 24 Aug 2001 21:36:32 +0000 |
| Subject: | Re: Re: someone please explain weird getforeignkeys | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-64349@lists.php.net to get a copy of this message | ||
> How good is php in terms of managing database (sybase) data compare to
> Java? I mean to display on the web?
PHP will talk to Sybase just fine.
I assume Java will also.
If you don't know either language, PHP is probably easier to understand.
First, build your database in Sybase, and use the Sybase "monitor" to do a
few queries "by hand". The "monitor" will be a command-line utility to let
you type in queries and see their results in simple ASCII layout.
Then, read
http://php.net/sybase/
You'll particularly want to focus on the functions to:
connect to the database
execute a query
get the results from the execution
Be sure to use error-checking on the return values of any functions you
call.
IE, sybase_connect is supposed to return an integer, but will return FALSE
if the connection failed. So check what you get back, and if it's FALSE,
print out an error message for yourself.
--
WARNING richard@zend.com address is an endangered species -- Use
ceo@l-i-e.com
Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm
Volunteer a little time: http://chatmusic.com/volunteer.htm