- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
<?php
if (!$ncat) {
$sql="select * from articles_cat where status=1 order by `name` ASC limit 0,1";
$res = m_qr($sql);
if (m_rows($res)) {
while ($row = m_arr2($res)) {
$ncat=$row[id];
... 10 строк кода ...
}
}
} else {
$sql="select * from articles_cat where id='$ncat'";
$res = m_qr($sql);
if (m_rows($res)) {
while ($row = m_arr2($res)) {
$ncat=$row[id];
... те же 10 строк кода ...
}
}
}
guest6 13.09.2023 17:52 # 0
CEHT9I6PbCKuu_nemyx 13.09.2023 18:57 # 0
CEHT9I6PbCKuu_nemyx 13.09.2023 18:58 # 0
guest6 13.09.2023 19:14 # 0
j123123 13.09.2023 19:17 # 0
guest6 14.09.2023 15:43 # 0
guest6 14.09.2023 15:52 # 0
guest6 15.09.2023 05:27 # 0