I have a form that calls for a display function, depending on the variable. It may very well be that this just can't be done, or that I am not echoing the information properly. Any help is so so so much apprecited. The query actually works, but not when I try to do the displays.
my first page includes the require_once('mydisplays.php');
and here is the query:
<?php
$query_contact = "SELECT * FROM users_tbl WHERE bill_email = '$billEmail'";
$institutioncontact = mysql_query($query_contact) or die("Problem with the query: $query_contact<br>" . mysql_error());
$row2 = mysql_fetch_assoc($institutioncontact);
if (isset($row2['institutioncontact']) && $row2['institutioncontact']=="Yes") {
echo '<?php display_contact_form() ?>';
}
else
{
echo '<?php display_contact_person() ?>';
}
?>
mydisplays.php
<?php
function display_contact_form()
{
?>
contact information here...code not written, but this string of text should show up, right? or, should this be as an echo 'contact information';
<?php
};
function display_contact_person()
{
?>
contact person, same here
<?php
};
?>