Re: spamfree@xxxxxxxxxxxxxxxx

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The problem with this program is:  when I click on Update The Record  onClick=\"return toggleMenu('menu1') can?t find (read) the function toggleMenu() for some reasone.
   
  That what I get :
   
  Object not found!  The requested URL was not found on this server. The link on the referring page seems to be wrong or outdated. Please inform the author of that page about the error. 
  If you think this is a server error, please contact the webmaster. 

Niel Archer <spamfree@xxxxxxxxxxxxxxxx> wrote:  > I understand, but how about the attached code? Every thing works fine except the slide menu.

It had errors in it that needed correcting. Beyond that I can't much
say. It *looks* OK, but without the missing include files it can't be
tested.

I've restructured it below. I had to make some guesses about your
intent, mostly about the include files. Hopefully I've guessed
correctly and not introduced too many errors of my own.
Note that I've moved most of the HTML outside of the PHP code, as it
does not need to be parsed. I've also standardised it as much as
possible in an attempt to make it clearer.




  
              function toggleMenu(currMenu) {
          if (document.all) {
            thisMenu = eval('document.all.' + currMenu + '.style')
            if (thisMenu.display == 'lock') {
              thisMenu.display = 'none'
            } else {
              thisMenu.display = 'block'
            }
          return false
          } else {
            return true
          }
        }
      // End hiding script -->
      
  #menu1 {display:none; margin-left:20px}  

$page_title = 'View Existing Data';
//include ('./includes/header.html');
//include( '../mysql_connect.php' );

?>


  
    
  View Existing Data



  " method=post>
$query = "SELECT DISTINCT Assign_Engineer FROM lo_data";
//$result = mysql_query($query);

?>




  
Choose a Category:while ($line = mysql_fetch_array($result)){ foreach ($line as $value) { echo" "; }}?>
 [input] 



if (isset($_POST["R"])) {
$result = mysql_query("SELECT Ref_No, Job_Title,Category,Assign_Engineer,Date_Received,Date_Required,Date_Assigned,ProjectedCompletionDate,Date_Completed,ManhourSpent,Status FROM lo_data WHERE Assign_Engineer ='".$_POST["R"]."'");
}

?>
  
  
  
  
  Reference No
  Job Descriptions
  Category
  Assign Engineer
  Date Received
  Date Required
  Date Assigned
  Projected Completion Date
  Date Completed
  Manhour Spent
  Status



while($row = mysql_fetch_array($result))
{
echo "  ";
echo "  ";
echo "  {$row['Ref_No']}
\n  Update The Record\n";
echo "\n  Update the record [input]  [input] 
";
echo "\n";
echo "  {$row['Job_Title']}";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo"";
}

?>







  

//mysql_close();
//include ('./includes/footer.html');

?>





Niel

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php





 

 
---------------------------------
Be a PS3 game guru.
Get your game face on with the latest PS3 news and previews at Yahoo! Games.

[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux