<[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED]
> Rob Adams wrote:
>
> > <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> > > $str = " INSERT INTO staff (name,job,subject)
> >                                                      1       2       3
> > > VALUES('$name','$job','$date','$subject',)";
> >                           1           2         -             3
>
> $date=date('Y-m-d H:i:s');
>
> Any idea for me to fix this kind of problem ?

I guess I wasn't explicit enough.  I would start by chaning your insert
statement to:

insert into staff (name, job, date_field, subject) values ... (etc.)

  -- Rob

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to