.oO(cupaball)
>Great! Where does that go in all this Dreamweaver code?
>
> if ((isset($_POST["MM_insert"])) &&
($_POST["MM_insert"] == "portfolio")) {
> $insertSQL = sprintf("INSERT INTO port_tb (comp_name,
design_type, URL,
>short_des, long_des, thumbnail, medium_pic, large_pic,
long_pic) VALUES (%s,
>%s, %s, %s, %s, %s, %s, %s, %s)",
> GetSQLValueString($_POST['comp_name'], "text"),
> GetSQLValueString($_POST['design_type'], "text"),
> GetSQLValueString($_POST['URL'], "text"),
> GetSQLValueString($_POST['short_des'], "text"),
> GetSQLValueString($_POST['long_des'], "text"),
> GetSQLValueString($_POST['thumbnail'], "text"),
> GetSQLValueString($_POST['medium_pic'], "text"),
> GetSQLValueString($_POST['large_pic'], "text"),
> GetSQLValueString($_POST['long_pic'], "text"));
Where do you want the date to go? The date column has to be
listed
inside of the parentheses after "INSERT INTO port_tb", the
NOW() call
inside the VALUES parentheses at the same position. Here's an
example
with the date at the first position (adjust the name as
necessary):
$insertSQL = sprintf("INSERT INTO port_tb (dateField,
comp_name,
design_type, URL, short_des, long_des, thumbnail,
medium_pic,
large_pic, long_pic) VALUES (NOW(), %s, %s, %s, %s, %s, %s,
%s, %s,
%s)",
... // all the rest
Micha