Hi All,
I have a problem and I dont understand what's happening, because my method usually works. I am querying a bunch of records from a database given a foreign key id. See code as follows
$castQuery = "SELECT * FROM cast WHERE production_id = '$newID' ";
$cresult = mysql_query($castQuery, $conn);
$cast = "";
while ($crow = mysql_fetch_row($cresult)) {
$real_name = $crow[1];
$stage_name = $crow[2];
$cast = "<p><b>$real_name</b> ~ $stage_name</p>";
}
I dont understand why im only getting 1 record.
Any help would be appreciated.