Database Help
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Codewalkers ForumsOther TechnologiesDatabase Help

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Codewalkers Forums Sponsor:
  #1  
Old November 29th, 2003, 04:14 AM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
query help please

Here is my query

$sql = "SELECT * FROM ap_data WHERE ap_unique_id = '$ap_unique_id' ";
echo $sql;

$result = mysql_query ( $sql, $connection ) or die ( "Could Not Do Query" .mysql_error());

I echoed $sql to see what is was and it looks ok

This is the error I get

SELECT * FROM po_data WHERE ap_unique_id = '605daf694d96adf86b059b44e8cd1516' Could Not Do Query Unknown column 'ap_unique_id' in 'where clause'

The column ap_unique_id is really there and it is spelled correctly

Reply With Quote
  #2  
Old November 29th, 2003, 10:24 AM
Ashkhan Ashkhan is offline
Contributing User
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 372 Ashkhan User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 1 h 24 m 57 sec
Reputation Power: 2
RE: query help please

I noticed that you have two different tables (ap_data and po_data) in your query and in the echoed $sql.
It seems that one of them doesn't have the column.
Otherwise it looks ok to me.

Reply With Quote
  #3  
Old November 29th, 2003, 02:00 PM
Anonymous Anonymous is offline
Registered User
Codewalkers God 35th Plane (22000 - 22499 posts)
 
Join Date: Apr 2007
Posts: 22,309 Anonymous User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 24
RE: query help please

no, I tried changing names of everything in case that would help. I just copy and pasted the wrong version of the error, but the error are the same. I can't understand it. A simple query and it don't work

Reply With Quote
  #4  
Old November 29th, 2003, 03:21 PM
zackcoburn zackcoburn is offline
Codewalkers Newbie (0 - 499 posts)
 
Join Date: Apr 2007
Posts: 184 zackcoburn User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 2
RE: query help please

Can you post your data models, please?

In MySQL, type:
Code:
describe ap_data;
describe po_data;

Reply With Quote
Reply

Viewing: Codewalkers ForumsOther TechnologiesDatabase Help > query help please


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway
Stay green...Green IT