I have no idea what's up with this. 😕
Piranha, the page source is just saying value="" , so that's not helping much.
Igor, I went back and tried it with your version, still no luck.
$sqlquery2 = "SELECT * from pilots WHERE pilot_id=('".$_SESSION['SESS_MEMBER_ID']."')";
//run the query into your SQL server
$run=mysql_query($sqlquery2);
//get the number of rows your query has returned.
$rows=mysql_num_rows($run);
//make a simple cycle to run through all your returned records
echo '<table>';
//loading returned values from database into an array
$result=mysql_fetch_array($run);
$email = $result['email'];
print '<tr><td bgcolor="#F3EEEB">Current Email Address:';
echo "<input type=\"text\" input name=\"email\" maxlength=\"256\" class=\"textfield\" value=\" $email \">
And it still gives no value.
:queasy:
$query = "SELECT * from pilots WHERE pilot_id=('".$_SESSION['SESS_MEMBER_ID']."')";
$result = mysql_query($query);
/* Determine the number of reports */
$number = mysql_numrows($result);
echo '<table>';
for ($i=0; $i<$number; $i++) {
$email = mysql_result($result,$i,"email");
Also returns no value.
?><input type="text" input name="email" maxlength="256" class="textfield" value="<?php echo $email; ?>"><?php
Also no value.
EDIT: The last one worked, I don't know what I did but it worked. Now all I need to figure out is the email thing, and I'm all set. 😃
And the final edit: Using the same code from the other problem, the email works.
decline_query = "SELECT * FROM pilots WHERE pilot_id='$item'";
$result3 = mysql_query($decline_query) or die(mysql_error());
$number = mysql_numrows($result3);
for ($i=0; $i<$number; $i++)
{
$email = mysql_result($result3,$i,"email");
$name = mysql_result($result3,$i,"name");
Man that had me frustrsted. Glad to be done with it. Piranha, Igor, you two rock. Thank you!