Aber der unterschied ich will die Ausgabe in eine Variable speichern will.
das habe ich geändert bin mit Contenido und PHP noch nicht so vertraut.
Code: Alles auswählen
$db2 = new DB_Contenido;
$sql= "SELECT title FROM {$cfg['tab']['art_lang']} WHERE idart = {$idart} AND idlang = {$lang}";
$db2->query($sql);
echo $sql."<br>"; // zur Anzeige ob SQL ok
while ($db2->next_record($sql))
{
echo ("<p class=\"text\">Artikeltitel: ".$db2->f('title')."</p>");
$test[]="$db2->f('title')"; // geändert
}
echo("test: $test[0]"); // geändert
Artikeltitel: Bildhauer
test: ('title')