$link = mysql_connect("localhost","wannalea_peter","jpl524"); if (! $link) die("Error: Could not connect to MySQL"); mysql_select_db('wannalea_wannalearn') or die("Error: Could not open database, and the error was: " . mysql_error()); // make today's date $date_today = date('j M Y'); // Get todat's SOTD $today = date('j'); $query = mysql_query("SELECT ID, Title, URL, Description, Day FROM Free_Instructional_Sites JOIN SOTD ON Free_Instructional_Sites.ID = SOTD.SITE_ID WHERE Day = $today"); while ($row = mysql_fetch_array($query)) { $title = $row['Title']; $url = $row['URL']; $description = $row['Description']; } $sotd = "$title - $description"; // Get three lates instructional sites $query = mysql_query("SELECT ID, Title, URL, Description, Rating, Votes FROM Free_Instructional_Sites ORDER BY ID DESC LIMIT 3"); while ($row = mysql_fetch_array($query)) { $title = $row['Title']; $url = $row['URL']; $description = $row['Description']; $rating = $row['Rating']; $votes = $row['Votes']; $id = $row['ID']; $latest_sites_html .= "
$title - $description"; if ($votes) { $latest_sites_html .= " "; } $latest_sites_html .= " Rate this site: 5 6 7 8 9 10
"; } ?>
  | "...this site turns education into revelation" - Entertainment Weekly |   |
|
( Critical Thinking, World Languages, Study Skills... )
Spiritual & Paranormal
Personal Enrichment
Business & Careers |
( Java, XML, Web Design, Graphic Design... )
Fitness & Health
Sports & Leisure
Fine Arts |
( Woodworking, Crochet, Carving... )
Home & Garden
Financial Management
Just for Fun |
Latest Free Instructional Sites: (added )
|
[ Link to Us | Site Map | Privacy Policy | Online Universities | About Us
©1999-, WannaLearn.com
Pages Updated On:
Educational Shopping | How-To Books | Classic Literature]