开发者

All the sudden my links not working in php

开发者 https://www.devze.com 2022-12-23 13:39 出处:网络
I have a page where all links where working properly but all the sudden some links are not working anymore.

I have a page where all links where working properly but all the sudden some links are not working anymore.

I am puzzling myself to undersand why. Nothing really 开发者_高级运维changed. Maybe some css details.

Is there anyone who can give a clue?

Thank you for any help. me abou twhat might have happened. Francesco

PS sorry forgot to say that looking at the source code the links are there and they work. In design view they just do nothing. They look like normal text.

<div id="centrale"><h1>&nbsp;&nbsp;Upcoming events</h1>
    <div class="centrale_event"><a href="events.php" class="new">CLICK HERE TO SEE ALL UPCOMING EVENTS</a></div>
    <p class="line">&nbsp;</p>
    <?php do { ?>
 <div class="centrale_event">
    <p><img src="<?php echo 'drawings/'.$row_rstevents['event_picture']; ?>" class="float" alt="" /><span class="big"><?php echo $row_rstevents['event_title']; ?></span></p>
    <p><strong><em>Starting on <?php echo $row_rstevents['date']; ?></em></strong></p>
    <p><strong>Where</strong>:&nbsp;<?php echo $row_rstevents['event_town']; ?></p>
    <p><strong>Place</strong>: <?php echo $row_rstevents['place']; ?></p>
    <p><?php echo extractFirst($row_rstevents['event_details']); ?> &nbsp;&nbsp;<a href="events_details.php?event_ID=<?php echo $row_rstevents['event_ID']; ?>" class="new">MORE INFO HERE</a></p> 
    <p class="line">&nbsp;</p>
 </div>
  <?php } while ($row_rstevents = mysql_fetch_assoc($rstevents)); ?>

  <div class="centrale_event"><p><a href="events.php" class="new">CLICK HERE TO SEE ALL UPCOMING EVENTS</a></p></div>
</div>


Are you using Dreamweaver? I thought you might seeing as you mentioned Design View.. If that's the case then just hit F12 to view in a browser, the design view of DW is pretty lame.


Nothing to do with the link problem, but is there a reason you're using a do {} while () loop to output your database results? Using this construct will output at least one blank event before any actual data shows up, as the first time around the loop, you haven't retrieved any data from the query yet. Any reason you can't do a regular while() { } loop?

0

精彩评论

暂无评论...
验证码 换一张
取 消