01.
<html>
02.
<head>
03.
<title>eiei</title>
04.
<meta http-equiv=
"Content-Type"
content=
"text/html; charset=utf-8"
></head>
05.
<body>
06.
<?
07.
$objConnect
= mysql_connect(
"localhost"
,
"root"
,
"1234"
)
or
die
(
"Error Connect to Database"
);
08.
$objDB
= mysql_select_db(
"project"
);
09.
$strSQL
=
"SELECT * FROM project WHERE ('"
.
date
(
"Y-m-d"
).
"' BETWEEN START_DATE AND END_DATE) "
;
10.
$objQuery
= mysql_query(
$strSQL
)
or
die
(mysql_error().
" ["
.
$strSQL
.
"]"
);
11.
?>
12.
13.
<?
14.
<img src=
"myfile/<?=$objResult["
PICTURE
"];?>"
>
15.
?>
16.
17.
18.
<?
19.
mysql_close(
$objConnect
);
20.
?>
21.
</body>
22.
</html>