I have a table on the front of my website which shows a few upcoming study days that we are holding.
I pull this table onto my homepage via an i-frame.
The thing is it looks crap and sticks out like a sore thumb compared to the rest of the website.
I have tried editing the file before but just end up with errors.
I would LOVE to be able to have three boxes like this -
http://www.splintered.co.uk/experime...e_not_a_table/
which lists the data each study day in its own box than what I currently have.
I have no idea how to do this thogh.
This is the code from the page that is called in the i-frame -
Code:
<?php
// Connects to your Database
mysql_connect("XXXXXX", "XXXXXX", "XXXXX") or die(mysql_error());
mysql_select_db("midwife_forum") or die(mysql_error());
// Collects data from "friends" table
$data = mysql_query("SELECT * FROM event ORDER BY dateline_from ASC")
or die(mysql_error());
$time_stamp = time();
// puts the "event" info into the $info array
//$info = mysql_fetch_array( $data );
Print "<table border=1 align=center cellpadding=3>";
$i=0;
while($info = mysql_fetch_array( $data ))
{
if($info['calendarid'] == 3 && $info['dateline_from'] >= $time_stamp)
{
$i++;
if($i <= 3)
{
Print "<tr><td><b>ID:</b><br> ".$info['eventid'] ."</td> ";
Print "<td><b>Title:</b><br> ".$info['title'] ."</td> ";
Print "<td><b>Event Details:</b><br> ".$info['event'] ." </td>";
Print "<td><b>Places:</b><br> <center>".$info['remaining_places'] ."</center> </td></tr>";
}
}
}
Print "</table>";
?>
I would really appreciate the help as this is the only thing REALLY bugging me!