Is it possible to do something like this? I'm new to this so don't know!
//row 1 in mysql array
$var = "hello";
$id = 1;
//row 2 in mysql array
$var = "bye";
$id = 2;
//Closing while loop
//Is the following possible?
echo $var1; //outputs "hello"
echo $var2; //outputs "bye"
echo $var1; echo $var2;but still, sincevar1andvar2haven't been defined, this isn't possible to do it like this. You could definevarandidas arrays and then access them usingvar[0]var[1]etc.$echomeans it's a variable the proper syntax isecho $yourvar/string.