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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T21:25:14+00:00 2026-05-31T21:25:14+00:00

Via post (not get) method, i’mm getting id’s in one file in php… How

  • 0

Via post (not get) method, i’mm getting id’s in one file in php… How can I take this parameters into sql where method?
So example: i get: 1234, 4571, 1112; and sql must be like this: Select * from balalala WHERE id=1234 and id=4571 and id=1112… it can be one or more parameters… but how to automatize this using php and post method?

  • 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-31T21:25:15+00:00Added an answer on May 31, 2026 at 9:25 pm

    Get your data in an array (in this example, it’s called $data). If your POSTdata is passed as an array, just $data = $_POST['ids'] would be fine. If you actually have a comma-separated string, then use $data = preg_split("(\s*,\s*)",$_POST['ids']);. Then, use this:

    $sql = "... WHERE id IN ('".implode("','",array_map("mysql_real_escape_string",$data))."')";
    

    The IN syntax allows you to define a list of options the ID may be.

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

Sidebar

Related Questions

So I'm getting an error: 501 Method Not Implemented POST to /newbooks.php not supported.
As outlined by this guys post, blocking IP's via PHP is pretty easy. However,
Can anyone help? I have a PHP method that sends an http post: <?php
When sending data via POST or GET with jQuery you use for format {
I'm stuck trying to get a WinInet HTTP POST via SSL using ONLY C.
I get this error with reCaptcha: 'Input error: response: Required field must not be
In my mvc3 POST ActionResult method, I have a portion of code like this:
I am trying to send the data via ajax POST method my code is
I have a link with this listener: $('#share-via-facebook-trigger').click(function () { FB.ui( { method: 'stream.publish',
I wrote a method to submit an error-report via HTTP POST. I run OSX-Lion

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.