|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
builder Smarty n00b
Joined: 14 Nov 2004 Posts: 1
|
Posted: Sun Nov 14, 2004 8:38 pm Post subject: Einfache DB-Ausgabe |
|
|
Hallo,
hab mir viele Posts angesehen, aber irgendwie kopiere das immer noch nicht.
Ich will eine einfache Datenbankausgabe.
[php:1:9a1f629a42]<?php
db_connect(); // dbverbindung
$page = "SELECT * FROM ".DBTAB_EINSTELLUNGEN."";
$sql = mysql_query($page)
or die(mysql_error());
$row = mysql_fetch_array($sql);
$smarty->assign('$titel', $row[titel]);
$smarty->display('index.tpl');
?>[/php:1:9a1f629a42]
es wird nichts ausgegeben!
Wo liegt das Problem?
danke für Hilfe |
|
Back to top |
|
messju Administrator
Joined: 16 Apr 2003 Posts: 3336 Location: Oldenburg, Germany
|
Posted: Sun Nov 14, 2004 9:07 pm Post subject: |
|
|
$smarty->assign('titel', $row['titel']);
nicht
$smarty->assign('$titel', $row[titel]); |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|