-1
I want to call a PHP function that is in the same file. I tried this within HTML code.
<?php select($dir, $base); ?>
And my PHP function:
function select($dir, $base){
$base_hndl = new SQLite3($dir.$base);
$requete = "SELECT id, title, start, end, description FROM \"event\" ORDER BY id DESC";
$resultat = $base_hndl->query($requete);
$affiche = $resultat->fetchArray();
echo "<br><label><b>ID: $affiche[id]</b></label><br>";
echo "<label><b>Title: $affiche[title]</b></label><br>";
}
I think a basic example could help you understand.
– Olimon F.