Chapter 4 Page 118 code
Hi, I have a question about the following code on page 118 I've starred the confusing lines:
function get_leadactor() {
global $movie_leadactor; ******
global $leadactor;
$query_a="SELECT people_fullname " .
"FROM people " .
"WHERE people_id = '$movie_leadactor'"; ******
$results_a=mysql_query($query_a)
or die(mysql_error());
$row_a = mysql_fetch_array($results_a);
extract($row_a);
$leadactor=$row_a['people_fullname'];
}
In this function, what is the value of $movie_leadactor, and where does it come from?
Thanks
|