Title says it all, but the difficulties I’m having are displaying the calendar.
[php]$conn = mysql_connect(“host”,“root”,“pass”);
if (!$conn) {
die('Could not connect to Server: ’ . mysql_error());
}
$db_selected = mysql_select_db(“schedule”,$conn);
if (!$db_selected) {
die ('Can’t Connect to Database : ’ . mysql_error());
}
$sql = mysql_query(“SELECT * FROM july”);
if (!$sql) {
die('Invalid query: ’ . mysql_error());
}
while($result = mysql_fetch_array($sql))
{
echo $result[“day”] . "
";
}[/php]
I’ve gotten this far, but the issue I’m having is that I need to display a certain amount of rows per week. So the first day in July starts on Monday, so it would have 6 days in it, then the next week is 7. I would think to use foreach, or something like that, but I am definitely not that skilled in this.
Thanks for your help!