Register Members List Search Today's Posts Mark Forums Read

Reply
 
Thread Tools
  #1  
Old 13 Jan 2015, 22:54
Dirks Dirks is offline
 
Join Date: Jun 2004
Word Count Query

Hey everyone, I run a creative writing website that rewards people by number of words written rather than posts. I'm trying to come up with a rudimentary webpage that searches word count in a thread with a mySQL query. By searching online, my coder and I have hacked together what appears on paper to be a workable code, but it still produces a database error when the query is made. I was hoping someone here could help me out.

Here's the code:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Here's the error I'm getting:
Block Disabled:      (Update License Status)  
Suspended or Unlicensed Members Cannot View Code.

Any help you can provide would be great. Here's the sample: www.althanas.com/world/postcount.php
Reply With Quote
  #2  
Old 13 Jan 2015, 22:57
Dave Dave is offline
 
Join Date: Jun 2010
Variables are case sensitive.
You define it as $threadID but use it as $threadid in the query.
Reply With Quote
  #3  
Old 13 Jan 2015, 23:05
Dirks Dirks is offline
 
Join Date: Jun 2004
You're my hero, Dave, that did the trick!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools

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


New To Site? Need Help?

All times are GMT. The time now is 07:40.

Layout Options | Width: Wide Color: