Welcome Guest, Not a member yet? Register   Sign In
CodeIgniter embedding database results in different html tags ( newbie here.. )
#1

[eluser]Unknown[/eluser]
I am a Codeigniter newbie, and here is my question I know that you get data from your database in an array form. But how do I seperate Data into seperate pieces so I can apply different html tags and CSS to different categories. For ex.

In my Database I have 6 Categories which are:

- Employee_id
- Real_name
- Email
- Profile
- Position
- SSS_number

Ok, so I do a foreach($data as $result) to get the result. In my page I wanna do this.

<h1>&lt;?php $Real_name ?&gt;</h1>
<h2>&lt;?php $Email ?&gt;</h2>
<p>&lt;?php $Profile ?&gt;</p>
<p>&lt;?php $position ?&gt;</p>
<p>&lt;?php $SSS_number ?&gt;</p>

How do I do that?


Messages In This Thread
CodeIgniter embedding database results in different html tags ( newbie here.. ) - by El Forum - 03-06-2008, 08:16 PM



Theme © iAndrew 2016 - Forum software by © MyBB