<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="el-gr" lang="el-gr"><head>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
</head>
<body>
<?php
$unitid = $argv[1];
$piatsa = $argv[2];
$message = $argv[3];
$db = 'geo';
$dbuser = 'root';
$dbpass = 'n1k0sm@nt1s';
$dbhost = '127.0.0.1';
$con = mysql_connect($dbhost,$dbuser,$dbpass);
$db_selected = mysql_select_db($db,$con); //or die("could not open database");
if (!$con)
{
 die('Could not connect: ' . mysql_error());
}
mysql_query("SET NAMES 'utf8'", $con);
$sql = "SELECT * from geomsg Where 1=1";
$result = mysql_query($sql,$con);
       $row = mysql_fetch_row($result);
       $msginsert = $row[1];
       echo "$msginsert";

mysql_close($con);
mysql_free_result($result);
?>
</body>
</html>
