Модераторы: healix, BMB, Модераторы форума
Викторович писал(а):qwertyua писал(а):If ($rw->dt_alert < $dt_cur ):
Так нельзя?
пробовал. не работает.
$rs = mysql_query('....');
if(mysql_num_rows($rs)) {
while($rw = mysql_fetch_object($rs)) {
echo ($rw->dt_alert);
}
} else {
//.....
}
$res = mysql_query("SELECT * FROM alerts WHERE idusr = $idusr AND dt_alert < curdate() limit 1");
if( $res && mysql_num_rows($res) )
echo('HTML');
$imgnm = $sql->SOne('task_images', 'nm', 'idtask', $idtask);
unlink("$path_img$imgnm");
echo "$path_img$imgnm; ";
exit;
<script src="https://ajax.googleapis.com/ajax/libs/angularjs/1.6.6/angular.min.js"></script>
<div ng-app>
<button ng-click="showAdditionalRows=!showAdditionalRows">{{showAdditionalRows ? 'Hide' : 'Show'}} Additional Rows</button>
<table>
<tbody>
<tr>
<td>row 1</td>
<td>row 1</td>
<td>row 1</td>
<td>row 1</td>
</tr>
<tr ng-show="showAdditionalRows">
<td>row 2</td>
<td>row 2</td>
<td>row 2</td>
<td>row 2</td>
</tr>
<tr>
<td>row 3</td>
<td>row 3</td>
<td>row 3</td>
<td>row 3</td>
</tr>
<tr ng-show="showAdditionalRows">
<td>row 4</td>
<td>row 4</td>
<td>row 4</td>
<td>row 4</td>
</tr>
</tbody>
</table>
</div>
Зарегистрированные пользователи: Google [Bot]