Skip to content Skip to sidebar Skip to footer

Repost: Creating A Rss Feed With Php

I asked how to do this before but it seems I needed to put more code to really get an answer. I have a reddit type site, and I am trying to create a rss feed this is the code, but

Solution 1:

I'm not at a machine with php to test this, but you have queries with variables as follows...

"select id from votes where username = '$user' and article_id  = $this->id"

I'm fairly certain that you need to bracket or concatenate when using objects...

"select id from votes where username = '$user' and article_id  = ${this->id}"

or

"select id from votes where username = '$user' and article_id  = " . $this->id

Post a Comment for "Repost: Creating A Rss Feed With Php"