Jump to content

Harder question - reverse SQL entries


icor1031
Go to solution Solved by mac_gyver,

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:

Edited by icor1031
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.