Read Wordpress Table From Not Wordpress Template

Discussion in 'HTML & Website Design' started by acepsdr, Aug 10, 2008.

  1. #1
    Example I have a php file like this:

    $fashion = mysql_pconnect($hostname_fashion, $username_fashion, $password_fashion) or trigger_error(mysql_error(),E_USER_ERROR);
    mysql_select_db($database_WP, $fashion);

    $query_RsArtikel="SELECT * FROM wp_posts"
    $RsArtikel = mysql_query($query_RsArtikel, $fashion) or die(mysql_error());
    do {
    $row_RsArtikel['post_content'];
    }} while ($row_RsArtikel = mysql_fetch_assoc($RsArtikel));

    If "post content" fill like this:

    This is a paragraph one
    This is a paragraph two

    With above script, show post content like this:
    This is a paragraph OneThis is a paragraph two

    My Question: How to show wordpress content from outside wordpress template, example from My above script?
     
    acepsdr, Aug 10, 2008 IP