Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

JavaScript Forum


You are currently viewing our JavaScript Forum as a guest. Please register to participate.
Login



Reply
'Recent Additions' using Javascript and MySql DB?
Old 04-06-2005, 08:14 AM 'Recent Additions' using Javascript and MySql DB?
Marc Timberlake's Avatar
Ultra Talker

Posts: 300
Trades: 0
Hi,

just wondering if it is possible to use Javascript to populate the 'Recent Additions' list on www.short-story.net (middle of front page). All stories are held in a MySQL database, is there a simple enough way to grab the most recent story and fill in the rest of the information (Title, Author, Genre, Rating)? At present I have to update it manually.

thanks for any guidance
__________________


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Marc Timberlake is offline
Reply With Quote
View Public Profile Visit Marc Timberlake's homepage!
 
 
Register now for full access!
Old 04-06-2005, 08:24 AM
Minaki's Avatar
Defies a Status

Posts: 1,626
Location: Guildford, UK
Trades: 0
Why javascript?

As it's a MySQL DB I'm assuming you're using PHP... why not use PHP to build a query such as:

SELECT TOP 10 FROM TableName ORDER BY Date
__________________
Minaki Serinde MCP
"Wow, Linux is nearly on-par with Windows ME!"

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Minaki is offline
Reply With Quote
View Public Profile Visit Minaki's homepage!
 
Old 04-06-2005, 08:31 AM
Marc Timberlake's Avatar
Ultra Talker

Posts: 300
Trades: 0
the list is in an html page... all dynamic pages on the site are written in Perl by a friend of mine.

I was just wondering as it'd be the only easy(ish) solution at the moment.
__________________


Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
Marc Timberlake is offline
Reply With Quote
View Public Profile Visit Marc Timberlake's homepage!
 
Reply     « Reply to 'Recent Additions' using Javascript and MySql DB?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.15528 seconds with 12 queries