Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Einfache DB-Ausgabe

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German
View previous topic :: View next topic  
Author Message
builder
Smarty n00b


Joined: 14 Nov 2004
Posts: 1

PostPosted: Sun Nov 14, 2004 8:38 pm    Post subject: Einfache DB-Ausgabe Reply with quote

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
View user's profile Send private message
messju
Administrator


Joined: 16 Apr 2003
Posts: 3336
Location: Oldenburg, Germany

PostPosted: Sun Nov 14, 2004 9:07 pm    Post subject: Reply with quote

$smarty->assign('titel', $row['titel']);
nicht
$smarty->assign('$titel', $row[titel]);
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Language: German All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP