moving server source files to server folder
[csql.git] / test / phptests / datatypeinfo.php
blobdbf0d88788bb7ed2341b8230cd723705d6405ff7
1 <html>
2 <body>
3 /*Testing for get all Datatype info of a database with odbc_gettypeinfo()*/
4 <?php
5 $conn=odbc_connect('mycsql','root','manager');
6 if (!$conn)
8 echo "Connection Failed";
9 exit(1);
12 echo "\nDisplaying data type information. ";
13 $result = odbc_gettypeinfo($conn);
14 if (!$result)
16 exit(2);
18 $rs = odbc_result_all($result);
19 if (!$rs)
21 exit(3);
24 echo "Test Passed\n";
25 odbc_close($conn);
28 </body>
29 </html>