RE: [phplib] Error message From: Eduardo Mena (eduardo <email protected>)
Date: 07/26/00

Hello

My table has 16 columns.

Thanks you.
Eduardo

----- Original Message -----
From: messju mohr <messju <email protected>>
To: Eduardo Mena <eduardo <email protected>>
Sent: Wednesday, July 26, 2000 2:01 PM
Subject: Re: [phplib] Error message

> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hello,
>
> you try to insert a row with 16 values. It seems your table "table" has
> more or less than 16 columns.
>
> HTH
> messju mohr
>
> On Wed, 26 Jul 2000, Eduardo Mena wrote:
> > Hi
> >
> > I get this error message "Insert unsuccesfull: Column count doesn't
match value count at row %ld"
> >
> > when I do
> >
> > mysql_connect("localhost", "username", "");
> >
> > // first field is auto_increment
> >
> > $query = "INSERT INTO table VALUES ('', '1','$var1', '$var2', '$var3',
'$var4', '$var5', '$var6', '$var7', '$var8', '$var9', '$var10', '$var11',
curdate(),'', '')";
> >
> > $result = mysql_db_query("db1",$query);
> >
> > if ($result) {
> >
> > echo "<p>added</p>"; }
> >
> > else
> >
> > {
> >
> > echo "<b> Insert unsuccesfull:</b>", mysql_error();
> >
> > exit;
> >
> > }
> >
> > mysql_close();
> >
> >
> >
> > What is the problem?
> >
> > Thanks for help me
> >
> > Eduardo
> >
> > eduardo <email protected>
> >
> >
> >
> >
>
> - --
> Matthias Mohr <m.mohr <email protected>> (Software-Entwicklung)
> Internet Factory AG, Niederlassung Industriestr. 11, 26121 Oldenburg
> Tel: (+49) (0)441 - 77 92 10 Fax: (+49) (0)441 - 77 92 177
> http://www.internet-factory.de
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.0.1 (GNU/Linux)
> Comment: PGPEnvelope - http://www.bigfoot.com/~ftobin/resources.html
>
> iD8DBQE5fzWpubKPpFA4n0URAm9SAJ44IXtWia08b7XNGlzBBAeBzW7+xQCfb8zF
> n+rA8bhkjeTkY8Ux8LuLAbQ=
> =d8S+
> -----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: phplib-unsubscribe <email protected>
For additional commands, e-mail: phplib-help <email protected>