In my database table there is a column named 'marks' . it contains values like 50,55,67,88,... Now I need to read this values one by one like - first 50, then 55 and so on. How is it possible using php ?
include("db_connect.php");
$result = mysql_query("SELECT * FROM students ",$con);
while($rows = mysql_fetch_array($result))
{
$mark1=$rows['marks'];//what will do here
$mark2=$rows['marks']; //should get value 55 and so on
}
50,55,67 .. etc?$array=explode(',',$rows['marks']);print_r($array)mysql_is deprecated comment.