I want to retrieve info from the following table and display it in a text field
I have a table named items. Within items I have the fields item_number, description, item_id, custom1, custom2, custom3, custom4
How do I echo or print the value of the custom fields?
mysql_connect("####", "####", "####") or die(mysql_error());
mysql_select_db("####") or die(mysql_error());
// Get all the data from the "example" table
$result = mysql_query("SELECT * FROM items") or die(mysql_error());
while($row = mysql_fetch_array($result))
{
echo '<input type="text" value='.$row['custom1'].'><br/>';
}