Results 1 to 5 of 5

Thread: Where is the bug - anybody please?

  1. #1
    Thread Starter
    Expired Customer tamolese's Avatar
    Join Date
    May 2015
    Location
    Florida, United States
    Posts
    178
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Where is the bug - anybody please?

    I wrote to you yesterday and this morning about a freelancer's buddy inserting bugs in our script? Well, thank God, I have found one of the scripts where we complained to the freelancer about his staff's grammar: If anyone submits for a job right now, their application does not go beyond the 'Submit' button! But it was okay before the bug insertion. The script begins:
    <?php
    require_once('wp-config.php');
    global $wpdb;
    $job_id = $_POST['job_id'];
    $user_id = $_POST['user_id'];
    $applied_date = $_POST['applied_date'];

    //$sql_insert="INSERT INTO wp_job_applied (`job_id`,`user_id`,`applied_date`) VALUES ( '$job_id','$user_id','$applied_date' )";
    //$result_insert = mysql_query($sql_insert);

    $tableName,
    $tableName = 'wp_job_applied';
    $editFormAction = $wpdb->insert (
    Array(
    'job_id' => $job_id,
    'user_id' => $user_id,
    'applied_date' => $applied_date
    )
    );

    $success = "Thank you for applying this job. we will contact with you soon.";
    header('Content-Type: application/json; charset=utf-8');
    if($editFormAction){
    echo json_encode( array( 'success' => $success) );
    }

    ?>
    Script ends.
    Can someone kindly assist and spot/correct the bug please? Thanks.

  2. #2
    jomarkosabel's Avatar
    Join Date
    Mar 2009
    Location
    Philippines
    Posts
    40,693
    Thanks
    166
    Thanked 3,387 Times in 3,258 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!
    Please help our moderating team work more efficiently by not sending us support questions via PM. You can read more about how AppThemes support works here. However, you can send a PM to follow up and remind me if I missed your support request/thread.

    Thank you and have a nice day.

  3. #3
    Expired Customer neto's Avatar
    Join Date
    Sep 2014
    Location
    Florida in the United States
    Posts
    39
    Thanks
    5
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  4. #4
    Thread Starter
    Expired Customer tamolese's Avatar
    Join Date
    May 2015
    Location
    Florida, United States
    Posts
    178
    Thanks
    0
    Thanked 0 Times in 0 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

  5. #5
    Expired Customer neto's Avatar
    Join Date
    Sep 2014
    Location
    Florida in the United States
    Posts
    39
    Thanks
    5
    Thanked 4 Times in 4 Posts
    You must be an AppThemes customer and logged in to view this response. Join today!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)