Hi i'm new to the php code here is the problem i want to slove
- Let say we have event[ eid,pid,start_time,end_time,date ]=[kim,34,2:00:00,4:00:00,2013-12-25]
and if I want to print the 'range' of certain date. for example I enter the dates such as
begin = 2012-12-23 end = 2012-12-25
and I want to print all the events between those dates. should i put some for loop functionality to query? or
$result2 =mysql_query("
select eid,description
from event natural join eventdate
where pid = '$pid'
and edate = '$edate'
}
or here
if($myrow = mysql_fetch_array($result))
{
echo"<table border=1>\n";
echo"<tr><th>pid<th>edate<th>description<th> schedule I invited and accept</tr>\n";
do{
printf("<tr><td>%s<td>%s<td>%s<td></tr>\n",$myrow["pid"],$myrow["edate"],$myrow["description"]);
}while($myrow = mysql_fetch_array($result));