tjazzvibe
asked on
drupal query question
i have a question about this query:
db_query_range('SELECT c.* FROM {comments} c WHERE c.status = %d ORDER BY c.timestamp', COMMENT_NOT_PUBLISHED, 0, $num_posts);
i understand the query, but the c.* and c.status.... what's happening here? is the table name >>> comments being turned into a nickname or variable? one called >> c. it would normally be comments.status right? and comments.*
i know the brackets are a drupalism so maybe the c is also.
thanks for your help
tony
db_query_range('SELECT c.* FROM {comments} c WHERE c.status = %d ORDER BY c.timestamp', COMMENT_NOT_PUBLISHED, 0, $num_posts);
i understand the query, but the c.* and c.status.... what's happening here? is the table name >>> comments being turned into a nickname or variable? one called >> c. it would normally be comments.status right? and comments.*
i know the brackets are a drupalism so maybe the c is also.
thanks for your help
tony
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
thanks
ASKER
thanks