Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6784673
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:01:31+00:00 2026-05-26T17:01:31+00:00

could anyone check my code why i get a notice like this? Notice: Undefined

  • 0

could anyone check my code why i get a notice like this?

Notice: Undefined index: id in C:\xampp\htdocs\HRPO\module\reports\jo\view_jo.php on line 76

line 76:

$id=$_GET['id'];

here is the first could of which I get my id:

  <?php
echo "<dl>";
echo "<dt width = 200 id=\"label\">"."SSA"."</dt>";
echo "<dd align='right'>";
$result = mysql_query("SELECT ssa.first_name,ssa.SSA_ID
FROM staffing_specialist_asst ssa
left join jo_partner jp on jp.SSA_ID = ssa.SSA_ID 
 group by first_name") or die(mysql_error());
$dropdown = "<select name=\"SSA_ID\" style=\"position:relative; left:-51px;\">\n";
while($row = mysql_fetch_assoc($result)) {
$dropdown .= "\r\n<option value='{$row['SSA_ID']}'>{$row['first_name']}</option>";
}
$dropdown .= "\r\n</select>";

echo $dropdown;
echo "</dd>";
echo "</dl>";
?>

and the second code where line 76 is found:

<?php

$id=$_GET['id'];

if(isset($_POST['submit']))
{
    $datefrom = $_POST['timestamp'];
    $dateto = $_POST['timestamp1'];

    //echo $option;


    $_SESSION['datefrom'] = $datefrom;
    $_SESSION['dateto'] = $dateto;



    if(( $datefrom == NULL) || ($dateto == NULL)){
        echo "<SCRIPT LANGUAGE='javascript'> confirmationError() ;</SCRIPT>";
        exit();

    }


$final =("SELECT distinct jp.receivedDate as rDate, ssa.first_name as saFName, ssa.last_name as saLName,job.client_order_number as joNum,
        job.job_order_type as joType, job.job_title as joTitle, cl.name as clientName
,ss.first_name as ssFName,ss.last_name as ssLName,jp.acknowledgeDate as aDate, stat.status as stat
FROM staffing_specialist_asst ssa  
left join jo_partner jp on  ssa.SSA_ID = jp.SSA_ID 
left join job_order job on jp.job_order_number = job.job_order_number
left join jo_status stat on job.job_order_number = stat.job_order_number
left join staffing_specialist ss on jp.SS_ID = ss.SS_ID
left join client cl on job.client_ID = cl.client_ID
where jp.receivedDate between '$datefrom1' and '$dateto1'
and ssa.SSA_ID='$id'
group by jp.receivedDate
order by jp.receivedDate asc");

echo $final;

$query = mysql_query($final);

echo "<table>";

while($row = mysql_fetch_array($query))
{
    $rDate = $row['rDate'];
    $saFName = $row['saFName'];
    $saLName = $row['saLName'];
    $joNum = $row['joNum'];
    $joType = $row['joType'];
    $joTitle = $row['joTitle'];
    $clientName = $row['clientName'];
    $ssFName = $row['ssFName'];
    $ssLName = $row['ssLName'];
    $aDate = $row['aDate'];
    $stat = $row['stat'];

    echo "<tr>";
    echo "<td width='150' colspan=\"1\" align=\"center\">".$rDate."</td>";
    echo "<td width='150' colspan=\"1\" align=\"center\">".$saFName."".$saLName."</td>";
    echo "<td width='150' colspan=\"1\" align=\"center\">".$joNum."</td>";
    echo "<td width='150' colspan=\"1\" align=\"center\">".$joType."</td>";
    echo "<td width='150' colspan=\"1\" align=\"center\">".$joTitle."</td>";
    echo "<td width='150' colspan=\"1\" align=\"center\">".$clientName."</td>";
    echo "<td width='150' colspan=\"1\" align=\"center\">".$ssFName."".$ssLName."</td>";
    echo "<td width='150' colspan=\"1\" align=\"center\">".$aDate."</td>";
    echo "<td width='150' colspan=\"1\" align=\"center\">".$stat."</td>";
    echo "</tr>";

}

echo "</table>";

}

?>

Thanks in advance for all the suggestions and help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:01:32+00:00Added an answer on May 26, 2026 at 5:01 pm

    $_GET['id'] expected the get variable ‘id’ in the url (i.e. www.google.com?id=4 then $_GET['id'] would equal 4).

    In order to avoid this you could do this before checking the get value if (! empty($_GET)) {$id = $_GET['id']}

    EDIT: The actual error ended up being the assumption of needing to use $_GET instead of the possibility of $_POST for form data.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Could anyone could point me to some code/give me ideas on how to create
Could anyone provide me with the pointers to source code for linux commands such
I was wondering if anyone could help me with getting this working. I'm using
Could anyone explain with some examples when it is better to call functions by
Could anyone recommend a good BAML Decompiler / Viewer besides BAML Viewer plugin for
Could anyone suggest a good packet sniffer class for c++? Looking for a easy
Could anyone explain me why: function doAjax() { var xmlHttpReq = false; try {
Could anyone can tell me where I can find full ASP.NET MVC beta documentation?
Could anyone point me to a resource that explains WCF with pictures and simple
Could anyone please tell what are the important use cases of IdentityHashMap ?

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.