File: test.php

package info (click to toggle)
freetds 1.3.17%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 9,104 kB
  • sloc: ansic: 98,429; sh: 5,044; xml: 4,472; sql: 1,488; makefile: 1,077; perl: 509; php: 22
file content (17 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
<html>
<body bgcolor=white>
<?php
$dbproc = sybase_connect("JDBC","guest","sybase");
if (! $dbproc) {
	return;
}
$res = sybase_query("select * from test",$dbproc);
if (! $res) {
	return;
}
while ($arr = sybase_fetch_array($res)) {
	print $arr["i"] . " " . $arr["v"] . "<br>\n";
}
?>
</body>
</html>