I have echoed the first row value of a column with success. Now I was thinking if there is a way to echo the second and the third values separately . Here is the working code
...
sql="SELECT `semester` FROM `$course`";
$retval=mysqli_query($link,$sql) ;
$row=mysqli_fetch_array($retval) ;
echo $row[0];
....
I tried to index the mysql array so that I can echo with indices but its not working. Just want to echo the values separately for js manipulation
"; }` is the simplest way. – ADyson May 20 '20 at 08:42