<?php
// connect to database server
$db_conn = mssql_connect("10.50.169.98","copsintranet","intranet")
or die( "<strong>ERROR: Connection to SPHINX1 failed</strong>" );
// select database - only if we want to query another database than the default one
mssql_select_db( "WebCops", $db_conn )
or die( "<strong>ERROR: Selecting database failed</strong>" );
// query the database
$query_result = mssql_query( "SELECT * FROM trainer", $db_conn )
or die( "<strong>ERROR: Query failed</strong>" );
?>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<?php echo $query_result; ?>
</body>
Returns
Resource id #2
How can I get the fields ?
The server is MsSql and I use sybase_ct.so loaded in my php module.
Thank You