Welcome Guest, Not a member yet? Register   Sign In
Add a single database entry?
#1

[eluser]Friedebarth[/eluser]
Hello CodeIgniters. I've watched the video tutorials and have read the userguide, but I can't figure out how to do the following.

My goal is to develop a CMS for simming fleets/clans specialised in Star Trek fandom. Therefore, I need the guys being able to easily edit the data (fleet name etc.), so I thought I could pull it from the database, where they could edit it (yes, I am going to add a form :lolSmile, and that's why I created a table called fms_start (like my index controller and it's viewfile.

This table has: id (quite unnecessary because there should only be one entry), which is auto_increment and int. Then, it has fname, body and footer. Now, the defaults for these are iFleet, Your text here and Copyright Joe Bloggs. Now what I wanted to do is this (database data in [] brackets):

Code:
<html>
<header>
<title>[fname]</title>
</header>
<body>
<h1>[fname]</h1>
[body]
<br>
<br>
<small>[footer]</small>
&lt;/body&gt;
&lt;/html&gt;

Now I didn't really get how to do that. Could someone please help me out? Thanks Smile

Your Friedebarth


Messages In This Thread
Add a single database entry? - by El Forum - 01-06-2009, 06:10 AM
Add a single database entry? - by El Forum - 01-06-2009, 07:49 AM
Add a single database entry? - by El Forum - 01-06-2009, 08:17 AM
Add a single database entry? - by El Forum - 01-06-2009, 09:28 AM
Add a single database entry? - by El Forum - 01-06-2009, 01:13 PM
Add a single database entry? - by El Forum - 01-06-2009, 03:45 PM



Theme © iAndrew 2016 - Forum software by © MyBB