Olive Branch MS Chamber of Commerce (circa Oct 1999)
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.

31 lines
1.2 KiB

  1. <?php // send page properties to the db
  2. require("../db.php3");
  3. $connection = connect($host,$dbname);
  4. if($connection) {
  5. $query = "update item set\n";
  6. $query .= "ord='$ord', type='$type', ";
  7. $query .= "class='$class', clear='$clear', ";
  8. $query .= "alt='" . trim(addslashes($alt)) . "', ";
  9. $query .= "url='$url',\n";
  10. $query .= "dat='" . trim(addslashes($dat)) . "'\n where id='$id'\n";
  11. $result = query($connection, $query);
  12. $rows = mysql_affected_rows($connection);
  13. // print("<!--\n$query\n-->\n");
  14. if($rows) {
  15. $q2 = "update page set changed=NULL where id=$pid";
  16. $update = query($connection, $q2);
  17. header("Location: http://$domain/admin/page_edit.php3?pid=$pid");
  18. // include("intro.php3");
  19. // print("<div class=center>\n");
  20. // print("<b>Database Successfully updated...<hr width=50%></b><br><br>\n");
  21. // print("<a href=\"index.php3\"><img src=\"btn.php3?label=Page+List ");
  22. // print("alt=\"Page List\" border=0></a><br><br>\n");
  23. // print("<a href=\"page_edit.php3?pid=$pid\"><img src=\"btn.php3?label=");
  24. // print("Item+List\" alt=\"Item List\" border=0></a><br>\n");
  25. } else {
  26. $error = mysql_error($connection);
  27. print("database error: $error\n");
  28. }
  29. }