Show images in php table

images php coding issues or problems here.

Moderators: egami, macek, gesf

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

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
  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider] and 1 guest