Current location: Hot Scripts Forums » Programming Languages » PHP » i have a problem regarding updating database online


i have a problem regarding updating database online

Reply
  #1 (permalink)  
Old 06-23-04, 02:36 AM
GENIUSAdnan GENIUSAdnan is offline
New Member
 
Join Date: Jun 2004
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
i have a problem regarding updating database online

We have a database in our intranet(offline) which is update everyday. And other one database for our website(online) that must needs to be updated every day with data coming from the first one.

Please tell us such method in which only updation occur, i mean it shouldn't be like that (the deletion of previous one and create new one).
in updation case only that tables or records should be updated those are effected offline during data entry or in insertion case if any one new one table or record inserted.

Some replies i had got like that :
(adding a timestamp when a record was created/modified would help)

But the problem is that How can we SELECT every record with a timestamp newer than our last update(offline),And after that how can we insert new data into database online.
If u (anyone) have idea about how to write Script in php regarding my problem or having already script for that or having any useful reference than please response me soon.

Last edited by GENIUSAdnan; 06-23-04 at 02:43 AM.
Reply With Quote
  #2 (permalink)  
Old 06-23-04, 03:53 AM
sufyan sufyan is offline
Newbie Coder
 
Join Date: Jun 2003
Location: Melbourne, AU
Posts: 53
Thanks: 0
Thanked 0 Times in 0 Posts
How about something like:

Code:
SELECT * FROM table WHERE timestamp between '$lastupdate' AND '$now'
or even:

Code:
SELECT * FROM table WHERE timestamp > '$lastupdate'
should work.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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 Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
updating an Access database irajiii Windows .NET Programming 2 06-15-04 12:43 PM
question about updating a page or database for an, php and mysql updating mikewooten PHP 1 02-12-04 12:11 AM
updating tables problem concatenate_man PHP 5 12-27-03 07:59 PM
tracking down a database problem ... bjmcintosh ASP 1 08-29-03 07:52 AM
A good online MSSQL database editor MadDog Script Requests 2 08-18-03 08:55 PM


All times are GMT -5. The time now is 05:05 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.