Skip to content

Instantly share code, notes, and snippets.

@luk-
Created June 14, 2009 00:38
Show Gist options
  • Save luk-/129491 to your computer and use it in GitHub Desktop.
Save luk-/129491 to your computer and use it in GitHub Desktop.
$sql = mysql_query("select * from wp_comments where comment_post_id=61");
$row = mysql_fetch_array($sql);
$sql2 = mysql_query("select * from wp_comments where comment_author='$row['comment_author']'") ;
$row2 = mysql_fetch_array($sql2) ;
echo $row2['user_id'] ;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment