You are here: Re: simple adding of data to a table « PHP Programming Language « IT news, forums, messages
Re: simple adding of data to a table

Posted by Rik on 02/07/07 18:20

<tomhughes_86@hotmail.com> wrote:

> So far i'va had no problems actually connecting to the database and
> displaying resulst but I just cannot make it add records.

> $test2=3D$_POST['test2'];
> $query =3D "INSERT INTO test2 VALUES ('','$test2')";
> mysql_query($query);

Well, let's check why mysql doesn't like it:


mysql_query($query) or die("Error in query:\n$query\nMySQL =

sais:\n".mysql_error());

-- =

Rik Wasmus

 

Navigation:

[Reply to this 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

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