Redirecting PHP query to text box
Posted: Mon May 01, 2006 3:45 am
Just a quick question...
how would you direct the results of a query to a text box ?
thanks
how would you direct the results of a query to a text box ?
thanks
A community of PHP developers offering assistance, advice, discussion, and friendship.
http://forums.devnetwork.net/
Code: Select all
<?PHP
$result = mysql_query("SELECT `x` FROM `x`") or die(mysql_error());
$get = mysql_fetch_assoc($result);
echo('<input type="text" name="x" value="' . $get['x'] . '" />');
?>