Forum - View topic
Newsfeed Question.




Anime News Network Forum Index -> Site-related -> Bugs & Technical Questions
View previous topic :: View next topic  
Author Message
Solik



Joined: 10 Aug 2005
Posts: 3
PostPosted: Wed Aug 10, 2005 12:05 pm Reply with quote
So I did everything the example told me too, and it can connect to my sql database, but it comes up blank everytime. I tried just about everything, to make sure it was actually connecting to the database I changed the password, and sure enough it popped up an error.

So I switched it back and changed around my login info for the newsfeed and it just comes up empty, no errors or anything, like its not connecting at all. So I deduced it was a SQL error. I'm running SQL 4.

annNews is the table
the fields in the table are

last_query
Type: int(10)
Attrib: Unsigned
Null: No
Default: 0

news
Type: Text
Collation: latin1_swedish_ci (This was selected by default)
Null: No

So I dunno, did I miss something?
Back to top
View user's profile Send private message
Solik



Joined: 10 Aug 2005
Posts: 3
PostPosted: Fri Aug 12, 2005 7:35 pm Reply with quote
Any suggestions at all?
Back to top
View user's profile Send private message
Tempest
I Run this place.
ANN Publisher


Joined: 29 Dec 2001
Posts: 10539
Location: Do not message me for support.
PostPosted: Fri Aug 12, 2005 11:47 pm Reply with quote
Quoting from animenewsnetwork.com/newsfeed/misc.php?page=help

Quote:
2. Save the news
In order to control bandwidth as well as who uses the newsfeed, the getnews.php script will only return text when something has changed from the last time. This means that you have to store (to a database or a file) what is returned by getnews.php in order to re-use it later.

...

Basically, you can use the script
http://animenewsnetwork.com/newsfeed/getnews.php?u=[username]&p=[password]
in whatever way you want, knowing that if the news have changed or if you saved your Newsfeed settings since the last time the script was called, it will return the number of news items you specified with the format you specified. So if getnews.php returns a blank page, just re-save your settings (it doesn't matter if nothing changed) and the next time the script is called it will return the news.


This is probably the cause.
Back to top
View user's profile Send private message Send e-mail My Anime My Manga
Display posts from previous:   
Reply to topic    Anime News Network Forum Index -> Site-related -> Bugs & Technical Questions All times are GMT - 5 Hours
Page 1 of 1

 


Powered by phpBB © 2001, 2005 phpBB Group