ALTER TABLE icon ADD showid SMALLINT not null ALTER TABLE icon ADD INDEX (showid) UPDATE icon SET showid=iconid
$icons=$DB_site->query("SELECT iconid,iconpath,title FROM icon ORDER BY iconid");
$icons=$DB_site->query("SELECT iconid,iconpath,title FROM icon ORDER BY showid");
$icons=$DB_site->query("SELECT iconid,title,iconpath FROM icon ORDER BY title LIMIT ".($limitlower-1).",$perpage");
$icons=$DB_site->query("SELECT iconid,title,iconpath FROM icon ORDER BY showid LIMIT ".($limitlower-1).",$perpage");
makelinkcode("remove","icon.php?s=$session[sessionhash]&action=remove&iconid=$icon[iconid]&perpage=$perpage&statrpage=$startpage");
echo "<br>Order: <input type=text name=\"order[$icon[iconid]]\" size=5 value=\"$icon[showid]\">";
echo "</table></td></tr></table></form>";
doformfooter("Update order");
doformheader("icon","modify");
doformheader("icon","doorder");
// ###################### Start Modify #######################
// ###################### Start do order ##################### if ($HTTP_POST_VARS['action']=="doorder") { while (list($key,$val)=each($order)) { $DB_site->query("UPDATE icon SET showid='$val' WHERE iconid='$key'"); } echo "<p>Order updated!</p>"; $action="modify"; }
Show Your Support