zto
05-14-2009, 08:09 PM
greetings,
i'm quite new in javascript programming and just started feeling more comfrotable with AJAX
I have a question for you
i have a page in which:
- i get data from mysql and present them on screen
- I insert data in mysql
- delete data from mysql
my question is which is the best way to implement those operation useing ajax and php
should i have 3 completely different ajax functions? should i have one and change only the .php i send data to?
or should i have one function and pass all the data with the appropriate flags to one .php file which will choose which function to use?
i hope you understand what i mean
sorry for my bad english
thnx
giorgos
i'm quite new in javascript programming and just started feeling more comfrotable with AJAX
I have a question for you
i have a page in which:
- i get data from mysql and present them on screen
- I insert data in mysql
- delete data from mysql
my question is which is the best way to implement those operation useing ajax and php
should i have 3 completely different ajax functions? should i have one and change only the .php i send data to?
or should i have one function and pass all the data with the appropriate flags to one .php file which will choose which function to use?
i hope you understand what i mean
sorry for my bad english
thnx
giorgos