I am trying to compare values of a string entered into an array but having
no results, is this possible to achieve:
<?php
$ids = $row_rsProduct['itemList']; // A comma separated list of values
(1,2,3,4,5,6,7, 8)
$list = array($ids);
if (in_array(1, $list)) {
echo "In List";
}
?>
I have no results but i cannot see why
Any help would be grateful
Craig
no results, is this possible to achieve:
<?php
$ids = $row_rsProduct['itemList']; // A comma separated list of values
(1,2,3,4,5,6,7, 8)
$list = array($ids);
if (in_array(1, $list)) {
echo "In List";
}
?>
I have no results but i cannot see why
Any help would be grateful
Craig
Comment