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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T20:02:17+00:00 2026-06-17T20:02:17+00:00

$deleteID = $_POST[‘oz’]; if(!$deleteID){ echo ‘2’; die; } else { //It should be working.

  • 0
    $deleteID = $_POST['oz'];
    if(!$deleteID){
        echo '2';
        die;    
    } else {
        //It should be working.
    }
    $checkVar = $pdo->prepare("SELECT * FROM `user_posts` WHERE `id`=:delete");
    $checkVar->bindValue(':delete',$deleteID,PDO::PARAM_STR);
    if($checkVar->execute() == false){
        echo '2';
        die;
    }

I’m really pissed off. $deleteID is supplied, nothing is being binded. Why not, please someone 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-06-17T20:02:18+00:00Added an answer on June 17, 2026 at 8:02 pm
    1. make PDO to throw exception on error,
      $pdo->setAttribute( PDO::ATTR_ERRMODE, PDO::ERRMODE_EXCEPTION );
      after connect.
    2. Make sure you can see errors occurred, either in logs or on the screen.
    3. Run the very code you posted here, not some other code. As in the other code there can be other errors, irrelevant to your binding problem.

    For the Table doesn't exist problem you have to check for mistakes like typos, letter case, wrong server connected, wrong PHP file edited etc. Say, you are running your PHPMyAdmin against localhost while actual script against remote host or something of the kind.

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

Sidebar

Related Questions

I accidentally deleted my previous post. Could I know exactly why I should compile
I deleted python .pyc files from my local repo and what I thought I
i'm using the prototype.js , PDO , PHP. i want to delete the records
I have a method that calls two services from PHP at the same time.
Could someone post a working example of a gridview with all rows editable (like
I'm working on a forum and, like in every forum, there are threads and
I have written the following custom field: from django.core.urlresolvers import reverse from django.db import
I am using php / mysql and protype.js to delete record from a table.
When I delete an item from the DB using jQuery.ajax with POST method, I
As a post-build event for some of my projects, I have documentation copied from

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.