Forum

November 2nd, 2014
A A A
Avatar

Lost password?
Advanced Search

— Forum Scope —




— Match —





— Forum Options —





Minimum search word length is 3 characters - maximum search word length is 84 characters

The forums are currently locked and only available for read only access
sp_Feed Topic RSS sp_TopicIcon
editurl help
20/07/2010
11:30
Avatar
irteza
Member
Members
Forum Posts: 11
Member Since:
18/04/2010
sp_UserOfflineSmall Offline

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

20/07/2010
14:35
Avatar
irteza
Member
Members
Forum Posts: 11
Member Since:
18/04/2010
sp_UserOfflineSmall Offline

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

Forum Timezone: Europe/Sofia

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.com

Moderators: tony: 7721, Rumen[Trirand]: 81

Administrators: admin: 66

Comments are closed.
Privacy Policy   Terms and Conditions   Contact Information