I am confused, how to explode the numbers from database. Simply I can Explode, but after explode I have to relate the numbers to another table. If any one not clear abt my problem, pls reply
Eg: 1, 2 Relate to Basket, football
$sql1=mysql_query("SELECT impid FROM customer where c_id=1") or die (mysql_error()); $result1 = mysql_fetch_array($sql1); echo $exp= $result1['impid']; // get 1, 2 from here echo $array=explode(",",$exp); // cannot get the output from explode function, How can I get the sports name from here.