How can i use the explode function on a mysq_query rezult? Lets say in mysql i have a,b,c,d,e and i want every character to be printed or assigned to a new variable .
I used the folowing code but i get :Resource id #4
<?php
include ("conect.php");
$sql="SELECT letters FROM table WHERE id_letter='0' ";
$result=mysql_query($sql);
$q=explode (",",$result);
foreach ($q as $x)
{
print "$q";
}
?>
Thanks!