{% else-1 %}
(3 янв 2014, 23:53) (1/0) [1]
Чеченец,
[code]if ($_GET[\'plus\'] == $row[\'id\'])

{

mysql_query(\"UPDATE `anek` SET `p_ret`=\'\".($row[\'p_ret\']+1).\"\' WHERE `id`=\'\".$row[\'id\'].\"\'\" );

}

else if ($_GET[\'minus\'] == $row[\'id\'])

{

mysql_query(\"UPDATE `anek` SET `m_ret`=\'\".($row[\'p_ret\']-1).\"\' WHERE `id`=\'\".$row[\'id\'].\"\'\" );

}[/code]
  • 1 из 1