Welcome Guest, Not a member yet? Register   Sign In
Just the first record
#3

[eluser]Chris Williams[/eluser]
I guess I'm trying to write something like this

Code:
//just the first record (or any really since all the records name this value)

<?php some code to show field 1 from the first record only ?>

//then all the records

<?php foreach ($query->result() as $row): ?>
    <tr>
        <td>&lt;?=$row->field2?&gt;</td>
        <td>&lt;?=$row->field3?&gt;</td>
        <td>&lt;?=$row->field4?&gt;</td>
        <td>&lt;?=$row->etc?&gt;</td>
    </tr>
&lt;?php endforeach; ?&gt;


Messages In This Thread
Just the first record - by El Forum - 06-01-2008, 11:19 AM
Just the first record - by El Forum - 06-01-2008, 12:34 PM
Just the first record - by El Forum - 06-01-2008, 12:40 PM
Just the first record - by El Forum - 06-01-2008, 02:24 PM
Just the first record - by El Forum - 06-01-2008, 03:46 PM



Theme © iAndrew 2016 - Forum software by © MyBB