Show images in php table

images php coding issues or problems here.

Moderators: macek, egami, gesf

Post Reply
seandisanti
php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Re: Show images in php table

Post by seandisanti » Mon Apr 14, 2014 8:22 am

Like with any other programming situation there are a few ways to accomplish this. I think the right way would be with css, you can set a min-width for each column and that would take care of it. You could also use a ternary expression like:

Code: Select all

echo empty($array[$column][$row])?'no picture':'picture';
 
except replace those strings with strings to display what you want of course

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests