How to populate php/html form with MySQL data -
i trying create program in user can update specific product. when user click on update button, form opens. want populate html form mysql data. have written following code giving me error message. sharing html part of code.i using form inside php echo. kindly check it. html: <label>product name:</label> </td> <td> <input type='text' name='product_name' value='<?php echo $fetch['product_id']; ?'/>*required </td> </tr> error message: parse error: syntax error, unexpected '' (t_encapsed_and_whitespace), expecting identifier (t_string) or variable (t_variable) or number (t_num_string) in f:\xampp\htdocs\cms\update_single_product.php complete code <!doctype html public "-//w3c//dtd xhtml 1.0 transitional//en" "http://www.w3.org/tr/xhtml1/dtd/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-e