Jenling Posted April 6, 2008 Share Posted April 6, 2008 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 More sharing options...
we4freelance Posted April 6, 2008 Share Posted April 6, 2008 Hello, You can not use rowspan for <td> tag. Rowspan is used for <tr> tag. For <td> tag you need to use "colspan" property. Hope this will help you. Thanks. Link to comment https://forums.phpfreaks.com/topic/99791-rowspan-for-an-image/#findComment-510374 Share on other sites More sharing options...
Jenling Posted April 7, 2008 Author Share Posted April 7, 2008 Thanks for your help~~ Link to comment https://forums.phpfreaks.com/topic/99791-rowspan-for-an-image/#findComment-510949 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.