hi
i'm pulling info out of a mysql db with
<pre>
if (!($conn = db_connect()))
return false;
$result = mysql_query( "select *
from user
where email = '$valid_user'");
$row = mysql_fetch_array($result);
echo "Welcome <b>".$row['firstname']." ".$row['lastname']."</b>";
//above, i'm pulling array elements and displaying them
echo "<br>".$row['city']; echo "<br>".$row[2];
//same thing above
</pre>
now i'd like to display a form on the page and have text fields and drop downlists preselected with the info in the db corresponding to the particular row i copied into the array $row[].
i've tried
<pre>
echo "<input type="text" name="textfield" value=".$row['firstname'].">";
</pre>
but this gives me
Parse error: parse error, unexpected T_STRING, expecting ',' or ';' in /usr/local/www/data.default/testapp/app_pg1.php on line 18
how is this done?
thanks
dumbass