Advertisement
Advertisement
| 12.08.2007 at 07:01PM PST, ID: 23011188 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: |
<?php
/* Program: PetCatalog.php
* Desc: Displays a list of pet categories from the
PetType table. Includes descriptions.
* User checks radio button.
*/
//...code...
?>
<html>
<head><title>PHP Test Page</title></head>
<body>
<?php
$user="ifolio";
$host="SQLEXPRESS";
$password="25130217cmt";
$database="test";
$Conn = mssql_connect("SQLEXPRESS","test","25130217cmt") or die("Unable to connect to server");
$Db=mssql_select_db("test",$Conn);
$query = "SELECT * FROM test";#
while($RS = mssql_fetch_array($SQL))
{
echo 'test'.$RS['test'].' ';
}
mssql_close($Conn);
$result = mssql_query($query)
or die ("Couldn't execute query."); #21
?>
</div>
</body></html>
|