$sql = "SELECT fFROM users WHERE user='$name'";
$result = mysql_query($sql) or die(mysql_error());
$row = mysql_fetch_array($result);
$f = $row['f'];
$list_f = explode(',', $f);
$i = 1;
while ($i <= 7) {
echo $list_f[];
$i++;
endwhile;
Basically i'm trying to pull the contents from the feild in the db.. which look like (1,2,3,4,) and i want to assign 1 2 3 4 seperate vars.
thanks for your time and help