誰かが私を助けてくれることを願って、結果を取得するのに少し問題があります。
カンマベースの文字列である$incategoryというフィールドがあります。私がやりたいのは、次のように結果を取得するために使用できる配列に分解することです(意味のあることを願っています)。
<?php
$showlist = $row_listelements['incategory'];
// ** e.g. $incategory = 1,3,5,
// ** What I want to do is look at table 'category'
// ** and retrieve results with an 'id' of either 1, 3 or 5
// ** Display Results
mysql_select_db($database_db, $db);
$query_display = "SELECT * FROM category WHERE id = ".$showlist." ORDER BY name ASC";
$display = mysql_query($query_display, $db) or die(mysql_error());
$row_display = mysql_fetch_assoc($display);
$totalRows_display = mysql_num_rows($display);
?>