• I’m trying to create a single page directory from an existing custom table that lists families, makes the family name a link passing to details (Master-Details page). I’m able to list the families but clicking the family name results with a relisting of the families and an ELSE result (Sorry Loser). I’m thinking the problem is in the query $family = $wpdb->query( $wpdb->prepare(‘SELECT * FROM families WHERE FamilyID = %d’, $_REQUEST[‘FamilyID’]) );. I’ve also tried $family = $wpdb->get_row( $wpdb->prepare(‘SELECT * FROM families WHERE FamilyID = %d’, $_REQUEST[‘FamilyID’]) ); $family = $wpdb->get_result( $wpdb->prepare(‘SELECT * FROM families WHERE FamilyID = %d’, $_REQUEST[‘FamilyID’]) );  $family = $wpdb->get_row(“SELECT * FROM families WHERE FamilyID = %d”); all with the same result. Any ideas would REALLY be appreciated.

    Eddie

    [Code moderated as per the Forum Rules. Please use the pastebin]

The topic ‘Master-Details from custom table within WordPress’ is closed to new replies.