473,405 Members | 2,349 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

Can't connect because Unknown column 'XXX' in "where clause'

I removed a group name and the database looks fine. All works fine except for 1 group and if you select it then you get the error "Can't connect because Unknown column 'XXX' in "where clause'" The column it is talking about is the one which was removed and doesn't exist. The # of groups total 8 yet the php request is looking for group 9
?GroupID=9
Sep 16 '13 #1
21 1779
Rabbit
12,516 Expert Mod 8TB
Then remove that group from the code.

That's all we can say since you didn't post the code.
Sep 16 '13 #2
Nothing I enter is helping the expert to help me
Sep 16 '13 #3
Nothing I enter is helping the expert to help me
Sep 16 '13 #4
Rabbit
12,516 Expert Mod 8TB
I thought you said you removed group 9 from everywhere? I see it right there in your dropdown.
Sep 16 '13 #5
Group 9 "Work Care" is correct
Seminole Group is what I removed?
Sep 17 '13 #6
Rabbit
12,516 Expert Mod 8TB
It can't possibly be correct to have a group 9. You said in your very first post that you only have 8 groups and that you removed group 9. It doesn't matter what you call your group 9 in your drop down, you have no group 9. It doesn't matter that your group 9 in your drop down doesn't match the group 9 in your database.
Sep 17 '13 #7
It shows in the code that Group 1 is "Choose" which essentially does nothing. Then it follows through with the 8 groups. I understand your point but when I run the search for all the other groups they pull up the correct data
Sep 17 '13 #8
How is it referencing a Group called Seminole which does not exist any more?
Sep 17 '13 #9
Rabbit
12,516 Expert Mod 8TB
Like I said, it doesn't matter what your intent is in your drop down. You are still trying to access a group 9 which does not exist.

Most likely because it's coded for somewhere in your PHP code. But you haven't posted your PHP code so that's all I can say.
Sep 17 '13 #10
Nothing I enter is helping the expert to help me
Sep 17 '13 #11
Nothing I enter is helping the expert to help me
Sep 17 '13 #12
there is a lot of code and I am trying to pick what could be relevant
Sep 17 '13 #13
Rabbit
12,516 Expert Mod 8TB
And on which line of code do you get that error?
Sep 17 '13 #14
I apologise but I do not know that is why I am here. I pasted the first source code from the webpage which showed the error and the source behind it. I then pasted more code from the php file, but I am asking for help finding the error.
Sep 17 '13 #15
Rabbit
12,516 Expert Mod 8TB
When you get an error code, the full error message tells you what line the error is on.
Sep 17 '13 #16
it does not. It states what I wrote in the beginning "Can't connect because Unknown column 'Seminole' in "where clause'"
Sep 17 '13 #17
Rabbit
12,516 Expert Mod 8TB
From the PHP manual:
The PHP errors which are normally returned can be quite helpful to a developer who is trying to debug a script, indicating such things as the function or file that failed, the PHP file it failed in, and the line number which the failure occurred in.
If you are not seeing it, then you are either looking in the wrong place or you have it turned off.
Sep 17 '13 #18
Rabbit
12,516 Expert Mod 8TB
From the little information I have, it looks like the error is probably in your dropdown function. But you haven't posted that code so I can't be sure.
Sep 17 '13 #19
isn't that line 18 on post 11?
Sep 17 '13 #20
// Generating the group drop down menu
19. echo "<select onChange='reload(this.form)' name='Group'>";
Sep 17 '13 #21
Rabbit
12,516 Expert Mod 8TB
Post 11, line 18 is the getGroupIndex function. Not the dropdown function.

I don't know why you copied and pasted that line of code in post #21. That has nothing to do with the dropdown function.
Sep 17 '13 #22

Sign in to post your reply or Sign up for a free account.

Similar topics

4
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...
8
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...
8
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...
5
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...
2
by: yodboy | last post by:
hi there Im going nuts - any help appreciated trying to connect to access db over a network so far - I can connect to the db using the same odbc with excel I can connect to a copy of the...
4
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",...
3
by: benicio | last post by:
Database query failed: Unknown column 'subj' in 'where clause' What does this error mean and how should it be fix?
4
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,...
3
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...
1
by: Bernard Cunanan | last post by:
Query failed with error: Unknown column 'bernard' in 'where clause' <?php session_start(); ob_start(); $host="localhost"; $user="bernard"; $pass="bernard"; $dbase="myproj";...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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,...
0
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,...
0
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...
0
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...
0
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.