<%
da="01"
dat=job_his_year&job_his_month&da
sql_date="select job_history_date,job_points_result from P4P_JOB_HISTORY where card_id='"&sql_con("card_id")&"' and job_history_date='"&dat&"' and job_id='"&sql_con("job_id")&"' "
set sql_con_date=Server.CreateObject("ADODB.Recordset")
set sql_con_date=conn.execute(sql_date)
if (sql_con_date.eof) Then
%>
-
<%else%>
<%=sql_con_date("job_points_result")%>
<%end if%>
</td>
.........ไปเรื่อยจนถึง
<td align="center">
<%
da="31"
dat=job_his_year&job_his_month&da
sql_date="select job_history_date,job_points_result from P4P_JOB_HISTORY where card_id='"&sql_con("card_id")&"' and job_history_date='"&dat&"' and job_id='"&sql_con("job_id")&"' "
set sql_con_date=Server.CreateObject("ADODB.Recordset")
set sql_con_date=conn.execute(sql_date)
if (sql_con_date.eof) Then
%>
-
<%else%>
<%=sql_con_date("job_points_result")%>
<%end if%>
</td>