<?php function getTasks() { result = mysql_query(tasks = array(); while (result)) { row->task_id] = tasks; } function taskOrder(_POST[tasks = getTasks(); rank = 1; foreach (key] as task_id, query = sprintf('UPDATE tasks SET rank =\ %d WHERE task_id =\ %d', task_id); mysql_query(rank++; } } ?>
(C) Æliens 20/2/2008
You may not copy or print any of this material without explicit permission of the author or the publisher. In case of other copyright issues, contact the author.