Ciao, ho una tabella strutturata come segue:
Tabella "testi":
id - alias - it - en
1 - chisiamo - Chi siamo - About us
2 - prodotti - Prodotti - Products
3 - login - Accedi - Login
4 - registr - Registrazione - Register
...
al momento richiamo i testi sotto forma di offset come segue:
codice:
$lingua = 'it';
$query = $connessione -> prepare ("SELECT id, alias, $lingua FROM testi");
$query -> execute();
while($testo = $query->fetch(PDO::FETCH_ASSOC)) {
$t[] = $testo["$lingua"];
}
echo $t[0];
C'è modo di richiamare i testi con l'alias?