Re: doubt regarding link

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



suresh kumar wrote:
i am having  back to home link ,by default its status is 0 in "mail table " database  .when any user click the  back to home link.i want to change status =1 in user table.is there any possible to call php function in javascript.i am using javascript onclick function.but javascript is not support to access DB.i am calling php function from javascript.but its not working.i am waiting for ur response.
				
---------------------------------
 Jiyo cricket on Yahoo! India cricket
Yahoo! Messenger Mobile Stay in touch with your buddies all the time.
Try using the link type yourpage.php?status=1 and on your home page put this check in:

if(isset($_GET['status']))
	{
	if(intval($_GET['status']) == 1)
	{
		// Your Query
		}
	}


Should do it =)

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux