Digital Workshop

Welcome to the Digital Workshop Message Boards
It is currently December 23rd, 2024, 6:34 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Calling all DataBase Guru's
PostPosted: March 26th, 2009, 2:58 pm 
Offline

Joined: February 12th, 2005, 5:27 pm
Posts: 177
Location: Canada
Opus: Pro
OS: Win7
Ok

So i did the Post Web data tutorial and i am now hooked LOL

( I preseum you figured out i'm new to this )

I have a project in mind........

its a client OR web page that must be able to list atleast 10 to 20 lines of data in a scrollable window and the data will be from 10 to 20 lines with 7 colums and may have as many as 100 to 200 people monitoring its data...


I am NEW to data bases and have a few questions....


Once i enter the data into the DB , is there away to have it timed to auto reset/remove ?

Can the reset/deletion be activated by date/time ?


how to display the 20 lines of 7 colums ?

When i enter NEW data does it automaticly attch itself to the bottom of the list ?


Lets start with those few quesions and get a grip on that LOL



Thanks in Advance

Al

_________________
-------------------------------------------------------
Win7 AMD +5000 Dual Core with 4 gig ram Geforce 9600 OPUS V7.05 Novice to Scripts/willing to learn , Mp3 Files must be 128kb


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 26th, 2009, 9:43 pm 
Offline
Godlike
Godlike

Joined: November 12th, 2005, 1:56 am
Posts: 1474
Location: SFBay Area
Opus: OpusPro v9.0x, & Evol.
OS: Vista32
System: Core 2 duo 2Ghz, RAM 3GB, Nvidia Go 7700 - laptop
Al,

Quote:
how to display the 20 lines of 7 colums ?

Some months ago I posted a working sample Pub, "Getting Started with SQLite DB". (did not have SQL_Update working back then, but reading from DB was fine.) That demo pub includes multi-column display of data records in both Lisboxes and in standard Text Object. You will find the script code there adaptable to your purpose.

Usually something like: Pagevar02 = Field1data[i] + "\t" + Field4data[i] + "\t" + Field5data[i] + "\n" ;
So Columns are separated by the Tab escape char, and the Record/Line ends with a line return. Depending on what you want to accomplish... might use TextObj6.ReplaceSelection( Pagevar02 ) constructs.

Quote:
When i enter NEW data does it automaticly attch itself to the bottom of the list ?

To the User, things could look 'automatic'... but that's why programmers have jobs behind the scenes. :wink: Within Opus you could do a periodic refresh (new read) at certain intervals. Or, you could have Opus read the DB constantly and 'detect' a change in Record count (or some other data change)... then when 'true', execute the refresh.


Quote:
Once i enter the data into the DB , is there away to have it timed to auto reset/remove ?

I have not worked on the server/PHP side... so others will have some solutions for that. The SQL DBs have a 'trigger' feature that I suspect could be mobilized for this kind of thing.

Cheers

_________________
_good things come to those who wait(0)_


Top
 Profile  
 
 Post subject:
PostPosted: March 26th, 2009, 10:43 pm 
Offline

Joined: May 24th, 2007, 11:02 am
Posts: 132
Location: UK - Wales - Ceredigion
Opus: illuminatus > Evolution
OS: Windows 10 Pro
System: i7 8GB RAM
If you want the database to delete or update etc every x amount of time, you will need to create a php function to do this and a "cron job" to run that. (google)


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 26th, 2009, 11:29 pm 
Offline
Godlike
Godlike
User avatar

Joined: March 21st, 2007, 10:44 am
Posts: 3188
Location: UK
Opus: Evolution
Hi Al,

I'm not 100% sure where the data is coming from or how frequently it is being refreshed. You can use cron and most modern databases allow for job scheduling.

I would image if you are looking for frequent updates then the T&Cs of your web-host will probably prevent anything under about 15mins.

Mack

_________________
When you have explored all avenues of possibilities, what ever remains, how ever improbable, must be the answer.

Interactive Solutions for Business & Education
Learn Anywhere. Learn Anytime.

www.interaktiv.co.uk
+44 (0) 1395 548057


Top
 Profile Visit website  
 
 Post subject:
PostPosted: March 27th, 2009, 12:22 am 
Offline

Joined: February 12th, 2005, 5:27 pm
Posts: 177
Location: Canada
Opus: Pro
OS: Win7
mackavi wrote:
Hi Al,

I'm not 100% sure where the data is coming from or how frequently it is being refreshed. You can use cron and most modern databases allow for job scheduling.

I would image if you are looking for frequent updates then the T&Cs of your web-host will probably prevent anything under about 15mins.

Mack


What do you mean T&C's ?

also Mack can you have alook at the post i made in BASIC's about the Post Web Data tutorial........i cant seem to get the data back into my PUB.....is the script flawed...



Al

_________________
-------------------------------------------------------
Win7 AMD +5000 Dual Core with 4 gig ram Geforce 9600 OPUS V7.05 Novice to Scripts/willing to learn , Mp3 Files must be 128kb


Top
 Profile Visit website  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: No registered users and 10 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group