473,672 Members | 2,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Unknown column 'NAN' in 'field list'

Hello Everyone,

I just ran into this issue, and I am hoping that some of you may be
able to help.

I am developing a web-based PHP application with a MySQL back-end. I
have a testing and a production environment. The only discernable
difference between the two is that the testing environment runs MySQL
4.1.14 and the production environment runs 5.0.2.

I made some modifications to an upload page (with just a bunch of
instert statements) today. It works flawlessly on the testing system
but when I push it out to production, I get this error message:

Unknown column 'NAN' in 'field list'

Any ideas?

I expect some of you would suggest that I upgrade my testing
environment so that it matches production. Although I could do this,
in this case the application may give me this error on both systems and
I would be no closer to the solution.

I would certainly apprecaite any help you may be able to offer.

Thank you!

Sep 21 '06 #1
2 28037
>I just ran into this issue, and I am hoping that some of you may be
>able to help.

I am developing a web-based PHP application with a MySQL back-end. I
have a testing and a production environment. The only discernable
difference between the two is that the testing environment runs MySQL
4.1.14 and the production environment runs 5.0.2.

I made some modifications to an upload page (with just a bunch of
instert statements) today. It works flawlessly on the testing system
but when I push it out to production, I get this error message:

Unknown column 'NAN' in 'field list'
Is there SUPPOSED to be a column named 'NAN'?

Log queries at the server. Search the queries for the string 'NAN'
around the time you get the error. With low activity on the server,
a "tail -f" on the log file running in one session while you recreate the
problem in another may be enough to spot the problem. Then figure
out what is generating the incorrect query.
>I expect some of you would suggest that I upgrade my testing
environment so that it matches production. Although I could do this,
in this case the application may give me this error on both systems and
I would be no closer to the solution.

Sep 21 '06 #2
Thanks for the suggestion.

No, the column was not supposed to be called "NAN". After a solid day
of research I found that NAN in PHP stands for "Not A Number". My
query was trying to insert the result of a function which was failing
for some unrelated reasons. So my suspision about the error
originating from the differing database version on the testing and
production systems was not correct.

Sorry to waste the forum's time with what turned out to be a non-mysql
issue.

Thanks!
Gordon Burditt wrote:
I just ran into this issue, and I am hoping that some of you may be
able to help.

I am developing a web-based PHP application with a MySQL back-end. I
have a testing and a production environment. The only discernable
difference between the two is that the testing environment runs MySQL
4.1.14 and the production environment runs 5.0.2.

I made some modifications to an upload page (with just a bunch of
instert statements) today. It works flawlessly on the testing system
but when I push it out to production, I get this error message:

Unknown column 'NAN' in 'field list'

Is there SUPPOSED to be a column named 'NAN'?

Log queries at the server. Search the queries for the string 'NAN'
around the time you get the error. With low activity on the server,
a "tail -f" on the log file running in one session while you recreate the
problem in another may be enough to spot the problem. Then figure
out what is generating the incorrect query.
I expect some of you would suggest that I upgrade my testing
environment so that it matches production. Although I could do this,
in this case the application may give me this error on both systems and
I would be no closer to the solution.
Sep 22 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
9865
by: ndsoumah | last post by:
Hello Guys I'm trying to run this query $uneRequete = "SELECT * FROM Usager WHERE motDePasse = {$loginPassword}"; and I get this error message : Error 1054: Unknown column 'xxxx' in WHERE clause..... where 'xxxx' is the content of $loginPassword
8
11061
by: Ward B | last post by:
Greetings all. I'm getting the following error message... Unknown column 'icaodesc' in 'field list' when I try to update a table from a PHP form. What 'field list' is it referring to? My PHP script or the MySQL table???
2
3309
by: Nospam | last post by:
I installed a script that is suppose to accept paypal, however on trying to test a payment, I get this error msg: Error Database access error and I get this error msg emailed to me:
8
3283
by: phillip.s.powell | last post by:
This query produces the following error: I'm sorry but I must have this "column" in the query, it's vital for required sorting order (you have to sort image_location_country in alphanumeric order, however, that column can also be null, BUT all NON-NULL fields MUST BE FIRST before all NULL fields!) I'm not sure what's happening, please help!
5
2522
by: Larry in Honolulu | last post by:
I'm getting an error message that makes no sense to me. I have a table with a field named 'testkey' for a list of "keys" in the form of ABC10102. I have a php variable holding a specific key number. The relevant code is - $_testkey = 'LAL10102'; $sql = "SELECT * FROM `pro_keys` WHERE `keynum`=`$_testkey`"; $result=mysql_query($sql,$db_conn); echoing the $sql gives -
4
5683
by: karthikeyanck | last post by:
I'm a newbie, I've installed PHP, Apache and MySQL on my Ubuntu system I've trouble in quering the data from MySQL when using the query function within PHP. I 've created a Database "test", Table "employee", i 've two columns "username" and "password", I've data "admin" and "admin" on both username and the password columns. $u and $p variables has "admin". <?php $query = "SELECT username and password FROM employee WHERE username = $u...
4
10666
tjc0ol
by: tjc0ol | last post by:
Hi guys, I'm a newbie in php and I got error in my index.php which is: 1054 - Unknown column 'p.products_id' in 'on clause' select p.products_image, pd.products_name, p.products_id, p.manufacturers_id, p.products_price, p.products_tax_class_id, IF(s.status, s.specials_new_products_price, NULL) as specials_new_products_price, IF(s.status, s.specials_new_products_price, p.products_price) as final_price from products_description pd,...
3
4920
nomad
by: nomad | last post by:
Hello everyone: I new to PHP and I'm reading a book on PHP Bibles 2nd edition. It has to deal with a user-rating system. There are 4 scripts to it. I'm getting an error Unknown column 'quotation' in 'field list' Here is my code rated_display.php <?php
1
7251
by: hannoudw | last post by:
Hi I have a table that contains all the informations about the user . i want to when to click edit to edit the information of a user . I wrote this page : edit_user.php <?php require_once("../../include/database.php"); require_once("../../Functions/user_functions.php"); $id=$_POST; user::GetInfoUser($userid);
0
8506
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8948
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8852
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8649
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8701
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7482
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5725
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
2847
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
2098
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.