Jump to content

MySQL to RSS using PHP


i7Grendel

Recommended Posts

You forgot to put a closing quote before the parentheses.

 

$ndata = dbquery('SELECT `blog_id`, `blog_subject`, `blog_text`, `blog_date`, `blog_writer` FROM `'.$db_prefix.'ti_blog_system` WHERE `blog_writer`=1 ORDER BY `blog_date` DESC LIMIT 5');

Link to comment
Share on other sites

Thank you, the RSS feed works (unbelievable that it's often so simple). But now I have another problem. My description looks like this:

 

This is an integrated blog system I'm trying to replace the News section, because the News section doesn't limit the amount of displayed items which would result in a horrible amount of items over time.

 

I changed one of the lines to fix one error, so now it looks like this

 

    $data.="        <description>".stripslashes(htmlspecialchars($text))."</description>\n";

 

Can somebody help me to display the apostrophes properly?

Link to comment
Share on other sites

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.   Paste as plain text instead

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