html - Display data in a from using PHP with ODBC -
i'm trying pull data db html form, have managed table in while loop, not form. here code:
if(isset($_post['search'])){ $quote = $_post['quote']; } $stmt = "select * dbo.tblversions2 quotenumber '".$quote."'"; $result = odbc_exec($conn, $stmt) or die('odbc error: ' . odbc_errormsg($conn) ); while (odbc_fetch_row($result)) // while there rows { // out here? know echo "<td>" . odbc_result($result, "quotenumber") . "</td>"; // display tabular data, how form?? } ?>
i've tried declaring variable in while loop, such $address1 = -'address1]; declaring in form value=" doesn't seem work, please help!
Comments
Post a Comment