simflex Posted July 15, 2010 Share Posted July 15, 2010 Hello again experts: I have been trying to apply the href tag so that when a user clicks on the title or loc fields, the user will be taken to the details section of the calendar. I am not having any luck. Can you please, please help? Here is the copy I am working on. Many thanks, echo "<a class=smallcalmth target=_WINPOP href=" ; echo "'"."cal_day.php?op=day&catview=".date("Y-m-d", mktime(0,0,0,$smmonth,$i,$smyear))."'>" ; echo "<table border=0 cellspacing=0 cellpadding=0 width=100%>" ; while ($row = mysql_fetch_object($result)){ echo "<tr><td align=center valign=top>" ; echo "<table class=eventborder cellspacing=0 cellpadding=0 width=100%><tr>"; if ($notimeentry==0) { echo "<td align=center class=eventtimeborder valign=top>" ; echo "<div class=smallcalevtime>"; if ($row->starttime=='') echo " " ; else showtime($row->starttime,$row->endtime,1); echo "</div>" ; echo "</td>" ; } echo "<td align=left valign=top width=80% class=eventborder>" ; echo "<div class=smallcalev><b>Subject:</b> "; echo subquot(stripslashes($row->title)); echo "</div>" ; echo "<div class=smallcalev><br/></div>" ; echo "<div class=smallcalev>@ "; echo subquot(stripslashes($row->loc)); echo "</div>" ; echo "</td></tr>" ; echo "</table>" ; } echo "</table>" ; // overlib line echo "',FGCOLOR,'$overlibbgclr',TEXTSIZE,'1',WIDTH,'180',VAUTO,HAUTO);\" onmouseout=\"return nd();\">"; } echo "<div class='datenumfont'>".$i."</div>" ; if ($devtcnt!=0) echo "</a>"; echo "</td>\n\n"; $a++; Link to comment https://forums.phpfreaks.com/topic/207852-href-tag-isnt-working-properly/ Share on other sites More sharing options...
gwolgamott Posted July 15, 2010 Share Posted July 15, 2010 What's it doing? Giving dead links? Link to comment https://forums.phpfreaks.com/topic/207852-href-tag-isnt-working-properly/#findComment-1086694 Share on other sites More sharing options...
radar Posted July 15, 2010 Share Posted July 15, 2010 echo "<a class=smallcalmth target=_WINPOP href=" ; echo "'cal_day.php?op=day&catview=".date('Y-m-d', mktime(0,0,0,$smmonth,$i,$smyear))."'>" ; try replacing it with that... Link to comment https://forums.phpfreaks.com/topic/207852-href-tag-isnt-working-properly/#findComment-1086698 Share on other sites More sharing options...
xcoderx Posted July 15, 2010 Share Posted July 15, 2010 something like this echo "<a class=smallcalmth target=_WINPOP href="."cal_day.php?op=day&catview=".date("Y-m-d", mktime(0,0,0,$smmonth,$i,$smyear))."" ; Link to comment https://forums.phpfreaks.com/topic/207852-href-tag-isnt-working-properly/#findComment-1086708 Share on other sites More sharing options...
radar Posted July 15, 2010 Share Posted July 15, 2010 Im tellin ya, it all has to do with echo "'"." -- since you arent adding anything with the dot, you either need a 2nd dot, or you need to remove the "." and it should work fine. Link to comment https://forums.phpfreaks.com/topic/207852-href-tag-isnt-working-properly/#findComment-1086721 Share on other sites More sharing options...
simflex Posted July 17, 2010 Author Share Posted July 17, 2010 I thank all of you very much for your assistance. It is all working well now. Many thanks. Link to comment https://forums.phpfreaks.com/topic/207852-href-tag-isnt-working-properly/#findComment-1087317 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.