[ create a new paste ] login | about

Link: http://codepad.org/weIyFXr4    [ raw code | output | fork ]

PHP, pasted on Aug 30:
1
2
3
4
5
6
7
<?php

$err = array(1,2,3,4,5,6,7,8);
$err_csv = implode(',',$err);
$sql = "SELECT FROM err_msgs WHERE id IN ('$err_csv')";

echo $sql;


Output:
1
SELECT FROM err_msgs WHERE id IN ('1,2,3,4,5,6,7,8')


Create a new paste based on this one


Comments: