{% else-1 %}
(3 дек 2013, 02:04) (0/0) [0]
[php]
$foto = mysql_query(\"SELECT `id` FROM `foto`\"*;

while ($array = mysql_fetch_array($foto)) {
$user = mysql_result(mysql_query(\"SELECT COUNT(`id`) FROM `user` WHERE `id` = \'$array[id]\'\"*, 0);

if ($foto == 0) {
mysql_query(\"DELETE FROM `foto` WHERE `id` = \'$array[id]\'\"*;
}
}
[/php]
Добавлено 03.12.13 в 02:05:16:
[code]
$foto = mysql_query(\"SELECT `id` FROM `foto`\"*;

while ($array = mysql_fetch_array($foto)) {
$user = mysql_result(mysql_query(\"SELECT COUNT(`id`) FROM `user` WHERE `id` = \'$array[id]\'\"*, 0);

if ($foto == 0) {
mysql_query(\"DELETE FROM `foto` WHERE `id` = \'$array[id]\'\"*;
}
}
[/code]
  • 1 из 1