Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
Hi All,
I wrote the PHP functions which is called by javascript, and The PHP functions affects the MySQL database. which updates some fields in the tables.
This code is pretty good for localhost and run well but when I upload the same code into the server it is not working well.
Could any one please tell me the solutions for this issue.
The code isCode: Select all
<?php
$funcName = $_GET[action];
$vars = $_GET[vars];
$funcName($vars);
function Prior($task)
{
$vars=explode(",",$task);
$result= @mysql_query("update tasks set proiority='" . $vars[1] . "' where id=" . $vars[0]);
}
?>Code: Select all
function abc()
{
var pdate=new Array();
pdate[0]=task;
pdate[1]=10;
url="tasks.php?action=tasks.php&vars="+pdate;
var sURL =unescape(window.location.pathname);
window.open(url, "_self");
window.location.reload(false);
}
-Sathish
Everah | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]