Welcome Guest, Not a member yet? Register   Sign In
Ajax and mysql
#1

[eluser]theighost[/eluser]
Hi,

I need help, i will not go in the details of my problem, i will tell u just the script i want.

lets say i have a database and a table, in this table there is a column that takes only the values 1 and 0.

in the site if the value is 1 a green dot appears if its 0 then a red dot appears.

i need ajax or javascript to help me change the value of the column from 1 to 0 and from 0 to 1, just by clicking on the dot.

so the result is: when i click on the green dot the value of the database will be set to 0 and then the red dot appears and verso.

all that without refreshing the page.

btw i am using codeigniter so the method get will have to be changed with the uri segment or something like that!

really needed

regards!


Messages In This Thread
Ajax and mysql - by El Forum - 08-26-2008, 08:26 AM
Ajax and mysql - by El Forum - 08-26-2008, 08:44 AM
Ajax and mysql - by El Forum - 08-26-2008, 09:02 AM
Ajax and mysql - by El Forum - 08-26-2008, 09:11 AM
Ajax and mysql - by El Forum - 08-26-2008, 09:11 AM
Ajax and mysql - by El Forum - 08-26-2008, 02:58 PM
Ajax and mysql - by El Forum - 08-27-2008, 01:49 AM
Ajax and mysql - by El Forum - 08-27-2008, 02:12 AM
Ajax and mysql - by El Forum - 08-27-2008, 02:41 AM
Ajax and mysql - by El Forum - 08-27-2008, 02:46 PM
Ajax and mysql - by El Forum - 08-28-2008, 03:31 AM
Ajax and mysql - by El Forum - 08-28-2008, 03:37 AM
Ajax and mysql - by El Forum - 08-28-2008, 05:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB