View Single Post
 
Old April 12th, 2006, 03:15 AM
ushastry ushastry is offline
Registered User
 
Join Date: Apr 2005
Location: New Delhi, Delhi, India.
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Hi!!

Try this...

<?php
$con = mssql_connect ("<ip of the server SQL>", "sa", "");
mssql_select_db ("<Data Base>", $con);
$sql= "SELECT * FROM <Table>";
$rs= mssql_query ($sql, $con);
echo "The field number one is: ";
echo mssql_result ($rs, 0, 0);
mssql_close ($con);
?>


For more help check out here

http://us3.php.net/mssql

-------
Thanks,
Umesh