Reply to Re: just trying to do simple site but no php hates me :(

Your name:

Reply:


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`) ...

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация