I'm new to php and to MySQL. I have checked other examples here but I am not able to understand where I went wrong. I am trying to write user data into a table called enrolled on the MySQL database. However I keep getting this error
Parse error: syntax error, unexpected '' (T_ENCAPSED_AND_WHITESPACE), expecting '-' or identifier (T_STRING) or variable (T_VARIABLE) or number (T_NUM_STRING)
and this is my code that is creating the error
$enroll = "INSERT INTO enrollment VALUES($srow['family'] $srow['uid'] $course)";