ok - smarty..

As I had mentioned before I was using gerrygerry's code from earlier in this thread:
------------
add.php:
------------
<form method="post" action="index.php">
<input type="hidden" name="todo" value="save">
<table>
<tr>
<td>Load Date:</td>
<td><input type="text" name="loaddate"></td>
</tr>
<tr>
<td>Originating City:</td>
<td><input type="text" name="origcity"></td>
</tr>
<tr>
<td>Originating State:</td>
<td><input type="text" name="origstate"></td>
</tr>
<tr>
<td>Destination City:</td>
<td><input type="text" name="destcity"></td>
</tr>
<tr>
<td>Destination State:</td>
<td><input type="text" name="deststate"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="submit" value="add"></td>
</tr>
</table>
</form>
----------------
update.php:
----------------
<?
mysql_connect($db_host, $db_user, $db_pass);
mysql_select_db($db_name);
$result = mysql_query("UPDATE $db_table SET loaddate=$loaddate,origcity=$origcity,origstate=$origstate,destcity=$destcity,deststate=$deststate WHERE id=$id"

;
?>
---------------
edit.php:
---------------
<?
mysql_connect($db_host, $db_user, $db_pass);
mysql_select_db($db_name);
$result = mysql_query("SELECT * FROM $db_table WHERE id=$editid"

;
$edit = mysql_fetch_array($result);
?>
<form method="post" action="index.php">
<input type="hidden" name="todo" value="update">
<input type="hidden" name="id" value="<? echo $edit["id"] ?>">
<table>
<tr>
<td>Load Date:</td>
<td><input type="text" name="loaddate" value="<? echo $edit["loaddate"] ?>"></td>
</tr>
<tr>
<td>Originating City:</td>
<td><input type="text" name="origcity" value="<? echo $edit["origcity"] ?>"></td>
</tr>
<tr>
<td>Originating State:</td>
<td><input type="text" name="origstate" value="<? echo $edit["origstate"] ?>"></td>
</tr>
<tr>
<td>Destination City:</td>
<td><input type="text" name="destcity" value="<? echo $edit["destcity"] ?>"></td>
</tr>
<tr>
<td>Destination State:</td>
<td><input type="text" name="deststate" value="<? echo $edit["deststate"] ?>"></td>
</tr>
<tr>
<td></td>
<td><input type="submit" name="submit" value="update"></td>
</tr>
</table>
</form>
----------
save.php
-----------
<?
mysql_connect($db_host, $db_user, $db_pass);
mysql_select_db($db_name);
$result = mysql_query("INSERT INTO $db_table (id,loaddate,origcity,origstate,destcity,deststate) VALUES ('NULL', '$loaddate', '$origcity', '$origstate', '$destcity', '$deststate')"

;
?>
-----------
index.php
-----------
<?
require("vars.php"

; //for database connection vars
switch ($todo) {
case "add":
//dispaly a blank form
$title="Add new entry"; //used by header
require("header.php"

; // your page header
require("add.php"

; // submits to index.php?todo=save
require("footer.php"

; // your page footer
break;
case "edit":
// pull the data from db and plugs into form
$title = "Edit Existing Entry"; // used by header
require("header.php"

; // your page header
require("edit.php"

; // edits $editid, submits to index.php?todo=update
require("footer.php"

; // your page footer
break;
case "delete":
require("delete.php"

; // deletes $deleteid from the db
header("Location: index.php"

; // go to listing
break;
case "save":
require("save.php"

; // add new entry to db
header("Location: index.php"

; // go to listing
break;
case "update":
require("update.php"

; // update the db where id=$id
header("Location: index.php"

; // go to listing
break;
default:
$title = "Viewing All Entries"; // used by header
require("header.php"

; // your page header
require("list.php"

; //show all entries
require("footer.php"

; // your page footer
break;
}
?>
------------
delete.php
------------
<?
mysql_connect($db_host, $db_user, $db_pass);
mysql_select_db($db_name);
$result = mysql_query("DELETE FROM $db_table WHERE id=$deleteid"

;
?>
link:
As I was pasting the code here, I noticed something else <oops, goofy error> I fixed it. And now - we're adding records! Still getting occasional Warning: Supplied argument is not a valid MySQL result resource errors. Let me go through the pages again with what you and gerrygerry told me about invisible characters and see if that's it. Bear with me....