Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Closed Thread
Unknown column '' in 'field list'
Old 09-15-2008, 04:08 AM Re: Unknown column '' in 'field list'
Red_X_'s Avatar
Extreme Talker

Posts: 158
Location: Houston
Trades: 0
Quote:
Originally Posted by mtishetsky View Post
Then are you sure you get this error exactly for this query?
Its my first SQL query. And nothing happens after that line.(debug of echo's)

I've also gone as for to do the statement in phpmyadmin, and copied the code it used with some very minor adjustments. :S and still it screws up.

This error baffles the hell out of me.
__________________
"Good News Everyone, by reading this your hearing my voice."
Red_X_ is offline
View Public Profile Visit Red_X_'s homepage!
 
 
Register now for full access!
Old 09-15-2008, 04:21 AM Re: Unknown column '' in 'field list'
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
So this is obviously a poltergeist. I'm afraid we are unable to help you.

I would recommend you to create a script which does nothing but the following:
PHP Code:
mysql_connect();
mysql_select_db();
$sql "your misterious query";
$res mysql_query($sql);
var_dump(mysql_fetch_object($res)); 
The point is to exclude any wrappers such as DB class or whatever. If this works there is a problem somewhere else.
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
View Public Profile Visit mtishetsky's homepage!
 
Old 09-15-2008, 04:23 AM Re: Unknown column '' in 'field list'
mtishetsky's Avatar
King Spam Talker

Posts: 1,226
Name: Mike
Location: Mataro, Spain
Trades: 0
Also please post the resulting query itself. Echo or error_log it right before doing mysql_query().
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

And don't forget to give me talkupation!
mtishetsky is offline
View Public Profile Visit mtishetsky's homepage!
 
Old 09-16-2008, 01:22 PM Re: Unknown column '' in 'field list'
Red_X_'s Avatar
Extreme Talker

Posts: 158
Location: Houston
Trades: 0
I get the following:

Code:
Resource id #3
bool(false)
Solved...Although I don't quite understand how it was solved. I just restarted apache/mysql/php...for the 10th time. -shrug- Oh well. thank you everyone! Talk++ for all of you.
__________________
"Good News Everyone, by reading this your hearing my voice."

Last edited by Red_X_; 09-16-2008 at 01:44 PM..
Red_X_ is offline
View Public Profile Visit Red_X_'s homepage!
 
Closed Thread     « Reply to Unknown column '' in 'field list'

Thread Tools Search this Thread
Search this Thread:

Advanced Search

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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.17314 seconds with 11 queries