irteza

Forum Replies Created

Viewing 5 replies - 1 through 5 (of 5 total)
  • Author
    Replies
  • in reply to: editurl help #95284
    irteza
    Participant

    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

    in reply to: setting editurl and search #94541
    irteza
    Participant

    HI thanks for replying…i have already looked through those examples…i still couldn't find anything which could help me write the code for editurl page… they have referred to the page ..(someurl.php) but I want to understand how to pass the values from jqgrid to this page….how to define data for updating etc….can i please get any help with that???? Thanks

    in reply to: JQgrid not working please help #94157
    irteza
    Participant

    Thanks a lot.. i got it working though…went over the whole thing and retyped everything..still don't know what the problem was…but i guess might have been a mistake in my coding..thanks a lot anyways

    in reply to: Beginner help #94156
    irteza
    Participant

    Thanks a lot..great help, that one!!!

    in reply to: need help connecting with db #93939
    irteza
    Participant

    ok i tried opening controller.php and it says that there is an sql syntax error in line 1 . This is my controller.php file. I really couldnt figure out an error here.

Viewing 5 replies - 1 through 5 (of 5 total)

Stay connected with us in your favorite flavor!