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 4603298
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T00:07:34+00:00 2026-05-22T00:07:34+00:00

please help, i have been working on this for 2 days now, i cant

  • 0

please help, i have been working on this for 2 days now, i cant seem to know why my database won’t update. the function of my program is this

from the main page,when a file’s status is ‘Pending’ a pop up link appears that directs it to the confirm.php
my confirm.php ask the admin if he/she would approve the file uploaded by the sa. the confirm.php contains to link buttons, YES and NO. when the admin clicks on yes,The database should change my confirmation table from PENDING to APPROVED. that also goes with the no, but it changes PENDING to NOTAPPROVED. I’m guessing the problem is within the confirm.php or the membersite.php where all functions are located. here is my code(I wont right it all because its too long)

**NOTE problem solved thanks guys

  • 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-22T00:07:35+00:00Added an answer on May 22, 2026 at 12:07 am

    mysql_query($yes) is your problem. You already did your query the line above there and you’re trying to do another query with something that is not an SQL string and so the page dies. Pending your autocommit setting, it’s possible nothing gets changed.

    The second problem I see is that the page likely doesn’t make it, because you close the window on click. Check your webserver logs if you ever see a request for “confirm.php?yes=123”. You should probably test confirm.php with a valid employee number in your browser. If that is working, your problem is not the php code or query, but the fact that the javascript prevents the request from ever getting sent to the server.

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

Sidebar

Related Questions

I have been working on this for 24 hours now, trying to optimize it.
please help me understand this. You have a function that calls a few methods:
I cannot understand how this is possible. Please help!! I have an app with
I've been looking for ways to do this for days now ... and its
i have been on this for the last 2 days with no result. i
Ok I have been working on this gallery for some time and I keep
I have been working on this for 1 hour with no such luck. Any
Please help! Background info I have a WPF application which accesses a SQL Server
I might have wandered into wrong direction so please help. I have a page
Please help me convert this line to C#. objManagementBaseObject.SetPropertyValue(hDefKey, CType(&H & Hex(RegistryHive.LocalMachine), Long)) Related

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.