Search snippets
Browse Code Answers
FAQ
Usage docs
Log In
Sign Up
Home
PHP
select values from mysql using php array of ids
CL0V3R
Programming language:
PHP
2021-05-22 18:02:35
0
Q:
select values from mysql using php array of ids
Taylor
Code:
PHP
2021-01-23 00:48:14
$sql = 'SELECT * FROM `table` WHERE `id` IN (' . implode(',', array_map('intval', $array)) . ')';
1
Tags
array
php
using
value
mysql
values
sql
select
Related
php array_values
php foreach multiple variables
php get all values from array
php variables as keys in arrays
php mysql prepare query
php variable inside mysql query
php my sql prepare bind param with multiple statements
php fetch mysql result as variable
in array php multiple values
mysql get this inserted id php
php foreach mysql result
php unique id
php insert array into mysql table
php select data from mysql database without column name
php get data from api with key and id
New to Communities?
Join the community