Hi guys,
Could you explain please why there's a needto put the dots before and after the $_GET['movie_id'] in this case. In second case I guess they are to avoid double quotations that are assigned to html tags ? Thanks for any comments.
----------------------------------------------------------
$movie_query = "SELECT
*
FROM
movie
WHERE
movie_id ='".$_GET['movie_id']."'";
---------------------------------------------------------
else{
$font_color ='blue';
$profit_or_loss = "Broke even";
}
return "<font color='$font_color'>".$profit_or_loss."</font>";
}
------------------------------------------------------------
Could you explain please why there's a needto put the dots before and after the $_GET['movie_id'] in this case. In second case I guess they are to avoid double quotations that are assigned to html tags ? Thanks for any comments.
----------------------------------------------------------
$movie_query = "SELECT
*
FROM
movie
WHERE
movie_id ='".$_GET['movie_id']."'";
---------------------------------------------------------
else{
$font_color ='blue';
$profit_or_loss = "Broke even";
}
return "<font color='$font_color'>".$profit_or_loss."</font>";
}
------------------------------------------------------------