mysql - Only one field in my form being set php and sql



Is this what you are looking for?

Product <input type="text" name="product" value="<?php echo htmlentities($row['product']); ?>" /></br>
Price <input type="text" name="price" value="<?php echo htmlentities($row['price']); ?>" />



For debug sake, do this after the while: "print_r($row);" - this will show you the exact contents of the $row variable

Plus... it would be nice to add limit 1 to your query

People are also looking for solutions to the problem: php - Conditionally order by another column


Didn't find the answer?

Our community is visited by hundreds of web development professionals every day. Ask your question and get a quick answer for free.

Ask a Question

Write quick answer

Do you know the answer to this question? Write a quick response to it. With your help, we will make our community stronger.

Similar questions

Find the answer in similar questions on our website.