Jump to content

rowspan for an image


Jenling

Recommended Posts

Recently, I'm creating a booking system where user can view their bookings from a table. If the booking is confirmed, it will show with color image. However, if user book for 3 hours, that's mean the table will show 3 hours rowspan for the table. But my image now only can't do so...anyone can help me with this? Below is my code:

  if($cycle[$g] == 0)
{
       $contents .= '<td class="concell"><a href="booking.php?&date='.$date[$g].'&startTimeHour='.$first_num.'&endTimeHour='.$sec_first_num.'&MRname='.$select.'&username='.$username.' "><img border="0" src="img/fairpink.gif" height="40" width="100"></a>'; 
$contents.= "</td>\n"; 
    } 

elseif($begin == 1) 
{ 
      $contents .= "<td class=\"setcell\"  rowspan=\"".$cycle[$g]."\">";
      if($not_found)
  {

if($s_result['status']==Pending)

	$contents .='<img border="0" src="img/green.gif"  height="40" width="100"  >';


elseif ($s_result['status']==Confirm)
	$contents .='<img border="0" src="img/orange.gif" height="40" width="100">';

      	$begin = 0; 
	}
    } 

Link to comment
https://forums.phpfreaks.com/topic/99791-rowspan-for-an-image/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.