Log in

View Full Version : PHP System [Help Needed]



alexxxxx
20-10-2006, 05:20 PM
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?

alexxxxx
20-10-2006, 08:07 PM
Sorry to bump, but I really need help.

Jackboy
22-10-2006, 08:37 AM
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?

alexxxxx
22-10-2006, 01:57 PM
Oh no, I can the use the RSS feeds.

Jackboy
22-10-2006, 02:38 PM
what cant u do then?

Get them to display?

alexxxxx
22-10-2006, 03:05 PM
No, I can display them, but I want my members to be able to choose what they want to see. =]

Jackboy
22-10-2006, 04:40 PM
oooohhhh

use cookies?

primal
22-10-2006, 04:43 PM
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

Jackboy
22-10-2006, 04:59 PM
Good idea mate.

Coz as he said cookies can be deleted. And also some people block cookies.

primal
22-10-2006, 05:01 PM
Woops, the second quesry is obviously:

Select bbc and not cnn

But i think you still see the general idea

Want to hide these adverts? Register an account for free!