1

I have a question which really Poked me for several days... I have came across a hurdle, the problem is that i need the Php application on the server side and the database to be on the client side... and the application should communicate with each other very nicely..

Javascript was the best option coming in my mind... The problem is that i dont have any idea how do i make this thing applicable...

If any one have any knowledge for that please share that stuff with me...

Thanks in advance...

user2420211
  • 280
  • 1
  • 3
  • 11
  • You're probably looking for Ajax to accomplish that. I could be wrong. JS alone cannot talk to a DB directly, far as I know. – Funk Forty Niner Dec 13 '13 at 17:54
  • As far as i am not sure if this can be done, i am pretty sure that this is really not a best practice !! – user2196728 Dec 13 '13 at 17:58
  • Java Script is was my first option as if its not possible with javascript i will be more happy to perform this task with AJAX... :) Do you have know relevant tutorials for this purpose? that could help me to figure out the stuff... I will be thankful for that – user2420211 Dec 13 '13 at 18:00
  • database on the client side ? How will the data be shared among the users ? If you mean connect to database from client side , then you are already doing that using simple ajax . – adi rohan Dec 13 '13 at 18:01
  • @adi Rohan: Every client will have its own DB... in his system. – user2420211 Dec 13 '13 at 18:02
  • then, you already have indexedDB for that . or you can use something like taffyDB – adi rohan Dec 13 '13 at 18:05
  • *"Every client will have its own DB... in his system"* – You mean "table" right? If not, it's been highly suggested (here on SO) not to do that, and for so many reasons. @user2420211 – Funk Forty Niner Dec 13 '13 at 18:50
  • @user2420211: Copy... Then any other alternative for doing this sort of stuff???? – user2420211 Dec 13 '13 at 20:22

1 Answers1

0

Your question is kind of generic, so i can't determine whether you REALLY need a database stored on the client-side, and why. However if that is what you truly desire, HTML5 has client-side storage capabilities which can be used for running apps locally in the browser without having to pass data back to the server:

Some background and usage

Tutorial

Digital Chris
  • 6,177
  • 1
  • 20
  • 29