title: how to get user ID from wordpress and use it in another webpage
body: <p>I am using a PHP file which creates new posts in the database of Wordpress
  using this line:</p>
  
  <pre><code>$sql = "INSERT INTO wp_njvt_posts (post_date,post_date_gmt,post_author, post_content, post_title, post_excerpt, post_password, post_name, to_ping, pinged, post_content_filtered, guid, post_mime_type) VALUES (NOW(),NOW(),'1','$content1', '', '', '','$file','','','','http://www.sktcho.com/?p=$file','')";
  </code></pre>
  
  <p>Now I need to get the user ID from the Wordpress website and use it in this file to enable the user to create a new post from his account instead of user ID '1' which I am currently using.</p>