<?php
header("Content-type: text/plain");
echo("Connect ");
$link = mysql_connect('localhost','otakeru_onotole', 'de>!kg)JWY9t');
if($link){ echo("OK"); } else { echo("FAILED"); }
echo("\n");
echo("Select DB ");
$db = mysql_select_db('otakeru_zlogene');
if($db){ echo("OK"); } else { echo("FAILED"); }
echo("\n");
echo("Execute procedure");
mysql_query("CALL testproc()");
echo("\n");
echo('#' . mysql_errno() . ' ' . mysql_error());
echo("\n");
echo("Execute function ");
$r = mysql_query("SELECT testfunc()");
if($r){ echo("OK"); } else { echo("FAILED"); }
echo("\n");
echo('#' . mysql_errno() . ' ' . mysql_error());
echo("\n");
?>