I am trying to send data to a function that I am calling but it doesn't seem to be working. I send three variables to a function and it is able to recognize one of the variables. I can print the variables right before calling the function but when I try to print the variables in the function, they print blanks.
Here is my calls to the functions:
updaterecord($number, $adminfirst, $adminlast);
displayrecord($number, $adminfirst, $adminlast);
Here is some partial code from one of the functions:
function displayrecord($number, $adminfirst, $adminlast)
{
//This code queries the record in the database that the user wants to view.
$query = "SELECT * FROM tblIssues WHERE IssueNumber LIKE '$number'";
$result = mssql_query( $query ) or die ("Query failed");
$line = mssql_fetch_array($result);
?><br>
Admin first in display:<input type="text" value="<?PHP $adminfirst ?>">
<form method="post" action="<?php echo $PHP_SELF?>">
<B><h3>Ticket Number: <input type="Text" name="ticketnumber" value="<?php echo $line[IssueNumber] ?>" onFocus=this.blur()></B></h3>
.......
The part above:
Admin first in display:<input type="text" value="<?PHP $adminfirst ?>">
Does not contain the $adminfirst value.
Can someone please tell me what I am doing wrong?