Jump to content

Harder question - reverse SQL entries


icor1031

Recommended Posts

I posted this on stackoverflow, but no one wanted to touch it.

 

http://stackoverflow.com/questions/25903927/mysql-reverse-new-entries

 

I've tried array_push, but the results remain as SimpleXML, and not a plain array, which I wasn't able to use.  I tried some other things that I can't remember.

$feed_url = 'http://feeds.feedburner.com/SlickdealsnetFP?format=xml';
$contents = file_get_contents($feed_url);
$x = new SimpleXMLElement($contents);

$arrayFPTitle=array();

foreach($x->channel->item as $temp){
	array_push($arrayFPTitle, $temp->title);
}

Have any suggestions?... I've been on this problem for a few hours, now. I even tried regex, but you can imagine I quickly realized I wasn't going to figure that out. :confused:

Link to comment
https://forums.phpfreaks.com/topic/291143-harder-question-reverse-sql-entries/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.