Welcome Guest, Not a member yet? Register   Sign In
table class help
#5

[eluser]buckboru[/eluser]
Well that was easier than i thought. I have yet another question though.
in my table their are 7 fields(7 headings) 1 of these fields is has a .jpg name. When i simply load the name all the fields line up with the headings, but I want to actually display the .jpg. So prior to loading my table i concatenate the location of the .jpegs with the .jpg name. Now when i display the table, i get the image loaded, however it is now seems to have added an additional table cell.

this is the code in question.
Code:
$sql = "SELECT LAST_NAME, FIRST_NAME,DEPARTMENT,EXTENSION,PAGER,CELLPHONE#,USERIMAGE
                 FROM tstmis.phoned01
                ORDER BY LAST_NAME";
        $query = $this->db->query($sql);    
        foreach ($query->result_array() as $row)
        {
            $image = $row['USERIMAGE'];
            $row['CELLPHONE#']= format_phone($row['CELLPHONE#']);
            $row['PAGER']= format_phone($row['PAGER']);
            $thumbimage = "tn_" . $image ;
            $row['USERIMAGE']= "<td><a ><img > </a></td>";


Messages In This Thread
table class help - by El Forum - 02-17-2009, 03:14 PM
table class help - by El Forum - 02-17-2009, 03:25 PM
table class help - by El Forum - 02-18-2009, 08:40 AM
table class help - by El Forum - 02-18-2009, 08:57 AM
table class help - by El Forum - 02-18-2009, 12:54 PM
table class help - by El Forum - 02-18-2009, 01:43 PM



Theme © iAndrew 2016 - Forum software by © MyBB