-
PHP System [Help Needed]
Okay, so I'd like to create a system like this:
User (register + login)
Page that edits variables (RSS Feeds) in a database
Page that reads the RSS feeds and shows them, and GETS the RSS Feed info from the database.
So if there was a user called bob for example and Bob had entered he wanted the BBC Sport RSS feed and CNN News on his member area.
He navigates to the Page www.url.com/view.php?bob (or whatever)
Then Bob's page would look like this:
Welcome Bob,
BBC Sport HEADLINE 1
short description
BBC Sport HEADLINE 2
short description
CNN News HEADLINE 1
short description
CNN News HEADLINE 2
short description
Could anybody link me to a tutorial that could help me do this?
-
Sorry to bump, but I really need help.
-
ahhh i see what u mean...
Hmmm. I dont know much bout this but im guessing. Well u obviously cant connect to a bbc database. Hmmm.
try searching the bbc for webmasters resources?
-
Oh no, I can the use the RSS feeds.
-
what cant u do then?
Get them to display?
-
No, I can display them, but I want my members to be able to choose what they want to see. =]
-
-
Hello.
Do you know the code to include in the page in order ot show the bbc, and cnn news.
If so then i suggest this.
make a filed for each feed in your database, that can be TRUE or FALSE.
Then when the user logs in, quesry the database for their feed fields.
e.g. $cnn = ("select cnn from database where user='$user')
$bbc = ("select cnn from database where user='$user')
then simply do:
if ($cnn== "true"){
CODE TO DISPLAY THE CNN FEED
}
then do the same for the bbc one.
P.S - instead of cookies just use the same database that your users already connect to, sdimply add the cnn and bbc fields, then you will remember forever which they want, no matter if they delete cookies or not
Hope that helps
-
Good idea mate.
Coz as he said cookies can be deleted. And also some people block cookies.
-
Woops, the second quesry is obviously:
Select bbc and not cnn
But i think you still see the general idea