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.

27 lines
1.0 KiB

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