Skip to content

Instantly share code, notes, and snippets.

@sashaca2
sashaca2 / newform.php
Created September 26, 2012 03:19
All in one enter new & edit form
<?php
/*
Allows the user to both create new records and edit existing records
*/
// connect to the database
include("connect-db.php");
// creates the new/edit record form
// since this form is used multiple times in this file, I have made it a function that is easily reusable
@sashaca2
sashaca2 / edit form
Created September 23, 2012 23:56
Edit Record
<?php
/*
Allows the user to both create new records and edit existing records
*/
// connect to the database
include("connect-db.php");
// creates the new/edit record form
// since this form is used multiple times in this file, I have made it a function that is easily reusable
@sashaca2
sashaca2 / The Form
Created September 17, 2012 03:12
Development Database in Progress
<html>
<head>
<title>Update Cartoon Database</title>
</head>
<body>
<h2>Add New Cartoon to Database</h2>
<form method="post" action="updatedev.php">
<?php include 'connect-db.php'?>
@sashaca2
sashaca2 / characters database
Created September 16, 2012 02:19
relational database
-- phpMyAdmin SQL Dump
-- version 3.5.1
-- http://www.phpmyadmin.net
--
-- Host: localhost
-- Generation Time: Sep 16, 2012 at 04:16 AM
-- Server version: 5.5.25
-- PHP Version: 5.4.4
SET SQL_MODE="NO_AUTO_VALUE_ON_ZERO";