PHP-Code:
<?php
include("includes/config.php");
require("smarty/Smarty.class.php");
mysql_connect($db_host, $db_user, $db_pass) OR die(mysql_error());
mysql_select_db("bautzenchat");
$sql = "SELECT id, feldname FROM test ORDER BY id";
$result = mysql_query($sql) OR die(mysql_error());
$smarty = new Smarty;
if (mysql_num_rows($result)OR die(mysql_error())) {
while ($row = mysql_fetch_assoc($result)Or die(mysql_error())) {
$smarty->assign($row['feldname'], "<input type=\"text\" name=\"".$row['feldname']."\" /><br />");
}
}
$smarty->display("index2.html");
?>
es wird nix angezeigt.
bitte um hilfe sorry kanns schlecht beschreiben
danke im vorraus
Kommentar