project:spot-in:stat

Programėlės Spot-In statistika

<php>

echo “</p>”; validation issues login informacija include(“./spot-in/core/web_db_conf.php”);

try{ $DBH = new PDO(“mysql:host=$dbServer;dbname=$dbName”, $dbUser, $dbPass); } catch(PDOException $e){ echo $e→getMessage(); } $DBH→query(“SET NAMES 'utf8'”); $DBH→query(“SET lc_time_names = 'lt_LT'”);

$sql = “CALL get_Statistics('_Web_Online_')”; $STH = $DBH→prepare($sql); $STH→execute();

echo “<dl>”;

while($row = $STH→fetch(PDO::FETCH_ASSOC) ){ foreach($row as $k ⇒$v) { echo “<dt>$k</dt><dd>$v<dd> \n”; }

}

echo “<dl>”; </php>

  • project/spot-in/stat.txt
  • Last modified: 2014/06/05 21:00
  • by 127.0.0.1