Code help

Discussion in 'Coding Help' started by pat102, Jul 22, 2013.

Tags:
  1. pat102

    pat102 New Member

    hi all.

    I have this little page to show calander updates on my site http://www.dx27.net/events-101.php

    I would the text "click for info" in front of the top name (white row), instead of underneath it.

    here is my coding,

    Code:
    <html>
    <head>
    <meta http-equiv="refresh" content="" >
    <link rel="stylesheet" type="text/css" href="30spot.css" />
    </head>
    <div class="CSSTable" >
    
    <body><center>
    <table>
                    <tr>
            <td>Latest Activations</td>
            
            </tr>
    
    <?php
    mysql_connect('xxxxxx', 'xxxxxx', 'xxxxxx') or die (mysql_error());
    mysql_select_db('xxxxxx') or die (mysql_error());
    $result = mysql_query("SELECT * from fusion_aw_ec_events  ORDER BY `event_id` DESC LIMIT 0,10");
    
    
    
    while($row = mysql_fetch_array($result)){
    
    
    //Display the results in different cells
    echo "<tr><td>" . $row['ev_title'] . "</td></tr>";
    echo '<td><a href="/infusions/aw_ecal_panel/view_event.php?id=' . $row['event_id'] . '"target="_blank">Click for info</a></td>';
    }
    
    //Table closing tag
    echo "</table></center></div></body></html>";
    ?>
    
    
    Thanks in advance
     

Share This Page