= CONVERT(DATETIME, '$ots', 102) AND TimeValue <= CONVERT(DATETIME, '$dos', 102)) "); $table = ""; $table .= ""; $table .= ""; $table .= ""; $table .= ""; while($row = mssql_fetch_assoc($q_T_ylic)) { //цикл $table .= ""; $table .= ""; $table .= ""; $table .= ""; } $table .= "
Дата и время Значение
".$row['TimeValue']."
".$row['CurrValue']." oC
"; echo $table /*(date("d.m.Y", strtotime(TimeValue)))*/ ; ?>