Forum


11:30

18/04/2010

Hi....needed some help here.....can anyone please give me an example of the editurl page??? i know how to use php and mysql but i cant understand which variables am i supposed to use in POST to save to database....do i use the same field names which i used to import the data??? Can anyone please show me an example of the editurl page?? will be grateful thanks
14:35

18/04/2010

I tried using the following code but it disappears as soon as i refresh the page. This should work when i set this one as editurl but sadly as soon as i refresh the page all the changes disappear. Any help would be appreciated. thanks
include("dbconfig.php");
$cf_id=$_POST['cf_id'];
$order_id=$_POST['order_id'];
$status=$_POST['status'];
$assigned_to=$_POST['assigned_to'];
$reported_date=$_POST['reported_date'];
$remarks=$_POST['remarks'];
$db = mysql_connect($dbhost, $dbuser, $dbpassword) or die("Connection Error: " . mysql_error());
mysql_select_db($database) or die("Error conecting to db.");
mysql_query("UPDATE jos_chronoforms_ictjobrequest SET order_id='$order_id', status='$status', assigned_to='$assigned_to', reported_date='$reported_date', remarks='$remarks' WHERE cf_id=$cf_id") or die(mysql_error());
mysql_close($db);
EDIT: Please tell me if this php is correct then that means .. there is a problem in my js and html file
Most Users Ever Online: 715
Currently Online:
72 Guest(s)
Currently Browsing this Page:
1 Guest(s)
Top Posters:
OlegK: 1255
markw65: 179
kobruleht: 144
phicarre: 132
YamilBracho: 124
Renso: 118
Member Stats:
Guest Posters: 447
Members: 11373
Moderators: 2
Admins: 1
Forum Stats:
Groups: 1
Forums: 8
Topics: 10592
Posts: 31289
Newest Members:
, razia, Prankie, psky, praveen neelam, greg.valainis@pa-tech.comModerators: tony: 7721, Rumen[Trirand]: 81
Administrators: admin: 66