PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
i am newbie in php. i got some code written in php and its working fine but i dont know the logic of having html headings and the results of my sql query!
$sql= "SELECT * FROM calendar_events WHERE day='$theday' and month='$themonth' and year='$theyear' and approved=1" or die(mysql_error());
$result = mysql_query($sql) or die('Query failed. ' . mysql_error());
if (mysql_num_rows($result) > 0) {
echo "there are some records!";
}
else {
echo "there are no events for $nameday $theday/$themonth/$theyear" ;
}?>
instead of the messages that is colored i need to have the results in html table. i will appreciate all the help and thanks guys alot.