Posted by Gordon Burditt on 11/18/06 22:22
>what i am trying to say here is
>
>// Define the query.
> $query = "INSERT INTO home (1) VALUE ('{$_POST['header']}')";
>"INSERT
>INTO home (2) VALUE '{$_POST['body']}'";
>
>the name of the table is home
>and that table whas two fields 1 and 2 and field 1 is a varchar 50 for
>the header and field to is text for the body of my site and 'header'
>and 'body' are the values im useing b/c those are the names of the
>fields in the form
1 and 2 don't look like field names. I also suggest you pick
something more descriptive. If you want them interpreted as field
names, you'll need to backquote them.
INSERT INTO home (`1`) ...
Navigation:
[Reply to this message]
|