do you mean something like:

<?php
$record = mysql_fetch_array(mysql_query("SELECT $table FROM $field",$dbh));
echo "Text: <input type='text' name='some_name'
value=\"{$record['wel_area']}\"><br>\n";
?>

of course, the output above would need to be inside an html form.

> -----Original Message-----
> From: jas [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, March 05, 2002 11:35 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP-DB] records into an editable box
> 
> 
> How would I change this sql statement to pull the db table 
> and display it
> within an editable box within a form?  Any help or tutorials 
> would be great.
> <?php
> $result = mysql_query("SELECT $table FROM $field",$dbh) or 
> die("Could not
> execute query, please try again later");
> echo "<B>text:</B><br>\n";
> printf(mysql_result($result,"wel_area"));
> ?>
> Thanks in advance,
> Jas
> 
> 
> 
> -- 
> PHP Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to