Hey all!
So I'm trying to use a line of php inside a heredoc statement. Here is an excerpt:
<?php
//assume proper db connection
$submitted_id_to_edit = x;
$A = $db->query("SELECT First_Name FROM ShareholderID = '$submitted_id_to_edit'");
print<<<_HTML_
First Name:<input type=text name="shareholder_first_name" value=<?php $A;?>>
_HTML_
?>
What's the problem here?
I also tried this which didn't compile either:
<?php
//assume proper db connection
$A = $db->query("SELECT First_Name FROM ShareholderID = '$submitted_id_to_edit'");
echo "First Name:<input type=text name=shareholder_first_name value="$A echo">";
?>
Neither one of them worked and I'd really appreciate any help you guys can offer. Thanks so much for your time.