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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T03:22:36+00:00 2026-05-24T03:22:36+00:00

I am calling a stored procedure that takes an boolean argument. True values are

  • 0

I am calling a stored procedure that takes an boolean argument. True values are easily passed as a 1 in my code, but false values are showing up blank. However, my var_dump shows that my value is actually false.

$form[$i]['photo_op'] = isset($_POST['photo_op'][$array_i]) ? $_POST['photo_op'][$array_i] : false;

My $_POST var_dump looks something like:

["photo_op"]=> bool(false) ["gala"]=> bool(true) ["chairman"]=> bool(false)

When I print out my values, it seems to be passing in empty strings for my ‘photo_op’ and ‘chairman’ fields:

foreach($form as $f){
    print "Photo OP: " . $f['photo_op'] . " | Gala: " . $f['gala'] . " | Chair: " . $f['chair'];
}

My output looks like:
Photo OP: | Gala: 1 | Chair:

My goal is to pass the false values to a stored procedure:

$final = insertAttendeeInfo($ind_id, $f['photo_op']);

The stored procedure looks something like:

function insertAttendeeInfo($ind_id, $photo){
   $insert = dbStoredProc('sp_remove_attendee_information', $ind_id, $photo);
   return;
}

Any ideas?

Thank you in advance.

  • 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-24T03:22:37+00:00Added an answer on May 24, 2026 at 3:22 am

    When you print a variable using the print function (or when you concatenate a variable to a string), its value gets converted to a string. A boolean false is converted to an empty string. If you want to see the true value of a variable use var_dump or var_export instead of print.

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

Sidebar

Related Questions

I have a stored procedure that I am calling using EXECUTE IMMEDIATE. The issue
I have a java program that is calling a MySQL stored procedure that is
I am calling a stored procedure from another stored procedure. That stored procedure is
I have an Oracle trigger which is calling a stored procedure that has PRAGMA
I've written a stored procedure that takes 15 min when executed from Management Studio.
Within tsql I'm calling a tsql stored procedure that returns a record set. I
I have a stored procedure in PostgreSQL that takes a t_document composite type defined
I get the following error when calling a stored procedure that has a table
I've created a stored procedure that takes parameters to create a user. If the
I am using NHibernate and calling a stored procedure via a named query: <sql-query

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.