Forum Replies Created

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter trevorhartman

    (@trevorhartman)

    thanks for your reply, that looks like exactly what I need. the reason I was rolling my own SQL is because i’m using amfphp to pull posts data into flash. being a wordpress noob, i’ve been reading up on The Loop, but i’m not sure how that would fit into the FlashPress amfphp service i’m using.

    i’m doing it like this:
    1. mysql_query
    2. loop results, parse columns into a dataobject
    3. return array of typed dataobject

    which ends up being an array of typed data objects in flash/as3.

    so, with that in mind, is there a way to do this type of syntax while still using query_posts?

    while( ( $row = mysql_fetch_array( $result ) ) != false )

    many thanks – trevor

    Thread Starter trevorhartman

    (@trevorhartman)

    solution:

    if you’re using amfphp and you need access to wordpress, open up globals.php under amfphp and include wp-blog-header.php at the end of the file (right before “?>” )

    example:
    require_once “../wordpress/wp-blog-header.php”;

    @whooami: thx for your help, and fyi, i searched my face off before posting. im a php noob, amfphp noob and wordpress noob (but not a programming noob) so i probably wasn’t using the right terms.

    Thread Starter trevorhartman

    (@trevorhartman)

    thanks. i had tried this but get an error:

    Fatal error: Call to a member function set_prefix() on a non-object in /Users/thartman/Sites/wordpress/wp-settings.php on line 255

    Thread Starter trevorhartman

    (@trevorhartman)

    +1

    any ideas? or links to other forums? thx – trevor

Viewing 4 replies - 1 through 4 (of 4 total)