File: test_mysql.php

package info (click to toggle)
opendb 0.62p9-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 3,544 kB
  • ctags: 3,560
  • sloc: php: 26,575; sql: 1,982; sh: 250; makefile: 54
file content (30 lines) | stat: -rw-r--r-- 608 bytes parent folder | download
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
<html>
<head>
<title>MySQL Module Test</title>
</head>
<body>
<h1>MySQL Module Test</h1>
<?php
$mysql_functions = array(
				'mysql_connect', 
				'mysql_select_db', 
				'mysql_error', 
				'mysql_query', 
				'mysql_free_result', 
				'mysql_num_rows', 
				'mysql_fetch_array',
				'mysql_num_fields');
?>

<h2>Functions</h2>
<?php			
for($i=0; $i<count($mysql_functions); $i++)
{
	if(function_exists($mysql_functions[$i]))
		echo 'Function \''.$mysql_functions[$i].'\' exists<br>';
	else
		echo 'Function \''.$mysql_functions[$i].'\' DOES NOT exist<br>';
}
?>
</body>
</html>