basic-ajax-12-insert.php / php
<?php require_once('connect.php'); if (!dbConnect()) { echo "Unable to establish database connection"; exit; } _POST['task']; task); if ((isset(sql = mysql_query("INSERT INTO tasks (task)" . "VALUES ('result = mysql_query("SELECT task_id, task FROM tasks ORDER BY rank"); if(!<ul id="task_list" class="sortable">'; while(row = mysql_fetch_row(task_id = task = <li id="task_'; echo task_id; echo '">' . </li>'; } echo '</ul>' ?>
(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.