I have a stored string that echoes like this
$string = 24,56,43,23,45;
I want to retrieve data from mysql, so I do this;
$getcompany = mysql_query("SELECT * FROM pages WHERE id = $string");
If the id matches any of the strings, it should show that info but nothing happens. I tried using explode to breakdown the strings but I don't know how to make the query loop through the string to display the info that matches the string.
I hope am making sense to someone :( pls help.