Error while inserting data into mysql

Error while inserting data into mysql

am 01.03.2011 11:25:16 von Nagendra Prasad

--e0cb4e887675c70504049d693825
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

I have 2 simple php pages. One with the form just like some sales voucher.
Another is to print in a proper format and to insert the form database into
mysql. When I enter some data in the sales voucher everything is going well,
however when it comes to the second php for inserting data into mysql I am
getting an error like "Error: Unknown column 'scloth100_qty' in 'field
list'". I have checked everything but not sure about the error. Please help
me with it.

Best,
Guru.

--e0cb4e887675c70504049d693825--

Re: Error while inserting data into mysql

am 01.03.2011 11:39:22 von Richard Quadling

On 1 March 2011 10:25, nagendra prasad wrote:
> Hi All,
>
> I have 2 simple php pages. One with the form just like some sales voucher.
> Another is to print in a proper format and to insert the form database into
> mysql. When I enter some data in the sales voucher everything is going well,
> however when it comes to the second php for inserting data into mysql I am
> getting an error like "Error: Unknown column 'scloth100_qty' in 'field
> list'". I have checked everything but not sure about the error. Please help
> me with it.
>
> Best,
> Guru.
>

You have some PHP code.

It is attempting to write to a mysql table.

One of the columns you've coded for doesn't exist. Maybe.

Can you show us the table structure and the exact SQL statement you
are executing please?

Richard.

--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Error while inserting data into mysql

am 01.03.2011 11:59:26 von Nagendra Prasad

--e0cb4e8876755269ee049d69b39a
Content-Type: multipart/alternative; boundary=e0cb4e8876755269e2049d69b398

--e0cb4e8876755269e2049d69b398
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

I have attached the table structure and the PHP code.

Best,
Guru.

--e0cb4e8876755269e2049d69b398
Content-Type: text/html; charset=ISO-8859-1

Hi All,

I have attached the table structure and the PHP code.

Best,
Guru.


--e0cb4e8876755269e2049d69b398--
--e0cb4e8876755269ee049d69b39a
Content-Type: text/plain; charset=US-ASCII; name="table structure.txt"
Content-Disposition: attachment; filename="table structure.txt"
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5VTEwNCnxoY2xvdGg5NV92YXRwfGludCgyMCl8WWVzfE5V TEwNCnxtd29vbDQw
X3RvdGFtdHxpbnQoMjApfFllc3xOVUxMDQp8Z3dvb2wyNV90b3RhbXR8aW50 KDIwKXxZZXN8TlVM
TA0KfHdtZXNoMjRfdG90YW10fGludCgyMCl8WWVzfE5VTEwNCnxzaGtvdGUz MF90b3RhbXR8aW50
KDIwKXxZZXN8TlVMTA0KfHNjbG90aDEwMF90b3RhbXR8aW50KDIwKXxZZXN8 TlVMTA0KfG1hY29t
cDQwX3RvdGFtdHxpbnQoMjApfFllc3xOVUxMDQp8cG9wX3RvdGFtdHxpbnQo MjApfFllc3xOVUxM
DQp8aGNsb3RoOTVfdG90YW10fGludCgyMCl8WWVzfE5VTEwNCnx0b3RhbHxp bnQoMjApfFllc3xO
VUxMDQp8dHJhbnNfY2hnc3xpbnQoMTUpfFllc3xOVUxMDQp8Z3RvdGFsfGlu dCgyMCl8WWVzfE5V
TEwNCnxydXBlZXN8dmFyY2hhcigxMDApfFllc3xOVUxMDQp8Ly8qKnBhcnR5 X25hbWUqKi8vfHZh
cmNoYXIoNDAwKXxOb3wNCnx0aW5fbm98dmFyY2hhcig1MCl8WWVzfE5VTEwN CnxpbnZvaWNlX25v
fHZhcmNoYXIoNTApfFllc3xOVUxMDQp8aW52b2ljZV9kYXRlfHZhcmNoYXIo MjApfFllc3xOVUxM
DQp8b3JkZXJfbm98dmFyY2hhcigxNSl8WWVzfE5VTEwNCnxvcmRlcl9kYXRl fHZhcmNoYXIoMjAp
fFllc3xOVUxMDQp8ZGNfbm98dmFyY2hhcigyMCl8WWVzfE5VTEwNCnxkY19k YXRlfHZhcmNoYXIo
MTUpfFllc3xOVUxMDQo9PSBEdW1waW5nIGRhdGEgZm9yIHRhYmxlIGRyZWFt DQoNCg==
--e0cb4e8876755269ee049d69b39a
Content-Type: text/plain; charset=US-ASCII; name="php_code.txt"
Content-Disposition: attachment; filename="php_code.txt"
Content-Transfer-Encoding: base64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NUW3J1cGVlc10nLCckX1BPU1Rb cGFydHlfbmFtZV0n
LCckX1BPU1RbdGluX25vXScsJyRfUE9TVFtpbnZvaWNlX25vXScsJyRfUE9T VFtpbnZvaWNlX2Rh
dGVdJywnJF9QT1NUW29yZGVyX25vXScsJyRfUE9TVFtvcmRlcl9kYXRlXScs JyRfUE9TVFtkY19u
b10nLCckX1BPU1RbZGNfZGF0ZV0nKSI7DQoNCmlmICghbXlzcWxfcXVlcnko JHNxbCwkY29uKSkN
CiAgew0KICBkaWUoJ0Vycm9yOiAnIC4gbXlzcWxfZXJyb3IoKSk7DQogIH0N CmVjaG8gIjEgcmVj
b3JkIGFkZGVkIjsNCg0KbXlzcWxfY2xvc2UoJGNvbikNCj8+IA==

--e0cb4e8876755269ee049d69b39a
Content-Type: text/plain; charset=us-ascii

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--e0cb4e8876755269ee049d69b39a--

Re: Error while inserting data into mysql

am 01.03.2011 11:59:26 von Nagendra Prasad

--e0cb4e8876755269ee049d69b39a
Content-Type: multipart/alternative; boundary=e0cb4e8876755269e2049d69b398

--e0cb4e8876755269e2049d69b398
Content-Type: text/plain; charset=ISO-8859-1

Hi All,

I have attached the table structure and the PHP code.

Best,
Guru.

--e0cb4e8876755269e2049d69b398
Content-Type: text/html; charset=ISO-8859-1

Hi All,

I have attached the table structure and the PHP code.

Best,
Guru.


--e0cb4e8876755269e2049d69b398--
--e0cb4e8876755269ee049d69b39a
Content-Type: text/plain; charset=US-ASCII; name="table structure.txt"
Content-Disposition: attachment; filename="table structure.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gkqpg4v60

PT09RGF0YWJhc2UgZHJlYW0NCg0KPT0gVGFibGUgc3RydWN0dXJlIGZvciB0 YWJsZSBkcmVhbQ0K
DQp8LS0tLS0tDQp8RmllbGR8VHlwZXxOdWxsfERlZmF1bHQNCnwtLS0tLS0N Cnxtd29vbDQwfHZh
cmNoYXIoM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RhbXR8aW50
KDIwKXxZZXN8TlVMTA0KfHNjbG90aDEwMF90b3RhbXR8aW50KDIwKXxZZXN8 TlVMTA0KfG1hY29t
cDQwX3RvdGFtdHxpbnQoMjApfFllc3xOVUxMDQp8cG9wX3RvdGFtdHxpbnQo MjApfFllc3xOVUxM
DQp8aGNsb3RoOTVfdG90YW10fGludCgyMCl8WWVzfE5VTEwNCnx0b3RhbHxp bnQoMjApfFllc3xO
VUxMDQp8dHJhbnNfY2hnc3xpbnQoMTUpfFllc3xOVUxMDQp8Z3RvdGFsfGlu dCgyMCl8WWVzfE5V
TEwNCnxydXBlZXN8dmFyY2hhcigxMDApfFllc3xOVUxMDQp8Ly8qKnBhcnR5 X25hbWUqKi8vfHZh
cmNoYXIoNDAwKXxOb3wNCnx0aW5fbm98dmFyY2hhcig1MCl8WWVzfE5VTEwN CnxpbnZvaWNlX25v
fHZhcmNoYXIoNTApfFllc3xOVUxMDQp8aW52b2ljZV9kYXRlfHZhcmNoYXIo MjApfFllc3xOVUxM
DQp8b3JkZXJfbm98dmFyY2hhcigxNSl8WWVzfE5VTEwNCnxvcmRlcl9kYXRl fHZhcmNoYXIoMjAp
fFllc3xOVUxMDQp8ZGNfbm98dmFyY2hhcigyMCl8WWVzfE5VTEwNCnxkY19k YXRlfHZhcmNoYXIo
MTUpfFllc3xOVUxMDQo9PSBEdW1waW5nIGRhdGEgZm9yIHRhYmxlIGRyZWFt DQoNCg==
--e0cb4e8876755269ee049d69b39a
Content-Type: text/plain; charset=US-ASCII; name="php_code.txt"
Content-Disposition: attachment; filename="php_code.txt"
Content-Transfer-Encoding: base64
X-Attachment-Id: f_gkqpg9871

PD9waHANCiRjb24gPSBteXNxbF9jb25uZWN0KCJsb2NhbGhvc3QiLCJyb290 IiwiIik7DQppZiAo
ISRjb24pDQogIHsNCiAgZGllKCdDb3VsZCBub3QgY29ubmVjdDogJyAuIG15 c3FsX2Vycm9yKCkp
Ow0KICB9DQoNCm15c3FsX3NlbGVjdF9kYigi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1RbZGNfZGF0ZV0nKSI7DQoNCmlmICghbXlzcWxfcXVlcnko JHNxbCwkY29uKSkN
CiAgew0KICBkaWUoJ0Vycm9yOiAnIC4gbXlzcWxfZXJyb3IoKSk7DQogIH0N CmVjaG8gIjEgcmVj
b3JkIGFkZGVkIjsNCg0KbXlzcWxfY2xvc2UoJGNvbikNCj8+IA==

--e0cb4e8876755269ee049d69b39a
Content-Type: text/plain; charset=us-ascii

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--e0cb4e8876755269ee049d69b39a--

Re: Re: Error while inserting data into mysql

am 01.03.2011 12:07:27 von Richard Quadling

On 1 March 2011 10:59, nagendra prasad wrote:
> Hi All,
>
> I have attached the table structure and the PHP code.
>
> Best,
> Guru.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Thank you for that.

Can you tell me what column in the table is scloth100_qty? I can't find it.

--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Error while inserting data into mysql

am 01.03.2011 12:07:27 von Richard Quadling

On 1 March 2011 10:59, nagendra prasad wrote:
> Hi All,
>
> I have attached the table structure and the PHP code.
>
> Best,
> Guru.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

Thank you for that.

Can you tell me what column in the table is scloth100_qty? I can't find it.

--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Error while inserting data into mysql

am 01.03.2011 12:09:36 von Richard Quadling

On 1 March 2011 10:59, nagendra prasad wrote:
> Hi All,
>
> I have attached the table structure and the PHP code.
>
> Best,
> Guru.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

The scloth100 columns I can see are ...

|scloth100_totamt|int(20)|Yes|NULL
|scloth100_utp|int(20)|Yes|NULL
|scloth100_val|int(20)|Yes|NULL
|scloth100_vatp|int(20)|Yes|NULL
|scloth100_vatr|int(10)|Yes|NULL
|scloth100|varchar(100)|Yes|NULL

No scloth100_qty.


--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: Error while inserting data into mysql

am 01.03.2011 12:09:36 von Richard Quadling

On 1 March 2011 10:59, nagendra prasad wrote:
> Hi All,
>
> I have attached the table structure and the PHP code.
>
> Best,
> Guru.
>
> --
> PHP Windows Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>

The scloth100 columns I can see are ...

|scloth100_totamt|int(20)|Yes|NULL
|scloth100_utp|int(20)|Yes|NULL
|scloth100_val|int(20)|Yes|NULL
|scloth100_vatp|int(20)|Yes|NULL
|scloth100_vatr|int(10)|Yes|NULL
|scloth100|varchar(100)|Yes|NULL

No scloth100_qty.


--
Richard Quadling
Twitter : EE : Zend
@RQuadling : e-e.com/M_248814.html : bit.ly/9O8vFY

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP-WIN] Re: Error while inserting data intomysql

am 01.03.2011 12:23:14 von Geoff Lane

On Tuesday, March 1, 2011, Richard Quadling wrote;

> Can you tell me what column in the table is scloth100_qty? I can't find it.

The issue here is probably that you have some PHP code that is passing
a SELECT statement to MySQL and that SELECT includes scloth100_qty in
its column list. One debugging technique that I find useful in such
situations is to echo the query to the output web page. So, if your
original code was:

$result_table = mysql_query ($query, $link);

Then you might try inserting the line:

echo "

$query

";

immediately before the call to mysql_query, i.e.:

echo "

$query

";
$result_table = mysql_query ($query, $link);

You can then examine the actual query being passed to MySQL and work
backwards from there to correct the issue.

HTH,

--
Geoff


--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Re: Re: [PHP-WIN] Re: Error while inserting data into mysql

am 01.03.2011 12:32:43 von Nagendra Prasad

--e0cb4e887675cb820f049d6a2a34
Content-Type: text/plain; charset=ISO-8859-1

Thanks Geoff Lane, I saw my mistake. Their was no scloth100_qty in my mysql
table. Once again Thanks buddy :)


On Tue, Mar 1, 2011 at 4:53 PM, Geoff Lane wrote:

> On Tuesday, March 1, 2011, Richard Quadling wrote;
>
> > Can you tell me what column in the table is scloth100_qty? I can't find
> it.
>
> The issue here is probably that you have some PHP code that is passing
> a SELECT statement to MySQL and that SELECT includes scloth100_qty in
> its column list. One debugging technique that I find useful in such
> situations is to echo the query to the output web page. So, if your
> original code was:
>
> $result_table = mysql_query ($query, $link);
>
> Then you might try inserting the line:
>
> echo "

$query

";
>
> immediately before the call to mysql_query, i.e.:
>
> echo "

$query

";
> $result_table = mysql_query ($query, $link);
>
> You can then examine the actual query being passed to MySQL and work
> backwards from there to correct the issue.
>
> HTH,
>
> --
> Geoff
>
>
> --
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

--e0cb4e887675cb820f049d6a2a34--