我正在从 mysqlserver 行项中检索数据到输入文本框的值,但在页面加载时该值未显示。而且我似乎无法显示输入框的值。有谁知道出了什么问题?
<?php
if(isset($_COOKIE["email"]))
{
$emailAddress = $_COOKIE["email"];
$password = $_COOKIE["password"];
include('connectDB.php');
$select = "SELECT * FROM P_Profile WHERE P_EmailAddress = '$emailAddress' AND P_Password='$password'";
mysql_select_db("lotusbs", GetConnection()) or die(mysql_error());
$result = mysql_query($select) or die(mysql_error());
$row = mysql_fetch_array($result)
?>
<div class="signupcontainer">
<div class="contentsignup" style="margin-top:20px;">
<div class="textboxsignup"><span class="signuptbspan" style="Display:none;">First name</span><input value="<?php echo $row['P_FirstName'];?>" name="txtfirstname" id="txtfirstname" type="text"/></div>
<div class="signupinfo">Enter first name</div>
<div class="signupinfoerror">Must Enter first name</div>