Hello,
I have a layout with 3 cells. In cell “b”, I have a grid.
I would write in the header of the cell, the hour of last update.
here is my piece of code in php.
heure.php:
<?php
// on se connecte à notre base
$base= mysql_connect("localhost","xxxx","yyyyy");
if (!$base) {
die('Connexion impossible: ' . mysql_error());
}
mysql_select_db ('Dwh_Unimag', $base) ;
$sql = 'SELECT * FROM Compteurs';
// on lance la requête (mysql_query) et on impose un message d'erreur si la requête ne se passe pas bien (or die)
$req = mysql_query($sql) or die('Erreur SQL !
'.$sql.'
'.mysql_error());
$data = mysql_fetch_array($req);
$hour = $data['Last_Time_Upload'];
mysql_free_result ($req);
mysql_close ();
?>
Here is a screenshot.
How can I do this ?
Thnaks for your help.