Reply to Re: having problem getting php to connect

Your name:

Reply:


Posted by peter on 06/24/07 21:41

> New problem now
> I made change and got:
>
> Warning: Missing argument 1 for addperson() in /home/smith/public_html/
> personal/ab_functions.php on line 20
> You have an error in your SQL syntax; check the manual that
> corresponds to your MySQL server version for the right syntax to use
> near '(firstName, lastName, dob, category, address1, address2, city,
> state, zipcode, t' at line 2
>
> I'm sure insert code works because if I just run it from page with
> form it is ok.

Did you change the following code as instructed:-

if(isset($_POST['do_addperson']))
{
addPerson ();
}

to the following:-

if(isset($_POST['do_addperson']))
{
addPerson ($connect);
}

The error message you posted suggests you did not.

[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

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