trevorhartman
Forum Replies Created
-
Forum: Fixing WordPress
In reply to: sql select posts matching multiple categoriesthanks 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 dataobjectwhich 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
Forum: Fixing WordPress
In reply to: wordpress environment in amfphpsolution:
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.
Forum: Fixing WordPress
In reply to: wordpress environment in amfphpthanks. 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
Forum: Fixing WordPress
In reply to: wordpress environment in amfphp+1
any ideas? or links to other forums? thx – trevor