Skip to content

Instantly share code, notes, and snippets.

@michaelcullum
Created February 5, 2012 23:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelcullum/1748371 to your computer and use it in GitHub Desktop.
Save michaelcullum/1748371 to your computer and use it in GitHub Desktop.
sql array
'SELECT' => 'c.*,b.*,ct.*,u.*',
'FROM' => array(
BLOG_CMNTS_TABLE => 'c',
BLOGS_TABLE => 'b',
BLOG_CATS_TABLE => 'ct',
USERS_TABLE => 'u',
),
'WHERE' => 'c.cmnt_id = ' . $db->sql_escape($comment_id) . '
AND b.blog_id = c.cmnt_blog_id
AND c.cat_id = b.blog_cat_id
AND u.user_id = b.blog_poster_id',
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment