在表列中显示多个记录不起作用

编程入门 行业动态 更新时间:2024-10-22 05:03:59
本文介绍了在表列中显示多个记录不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

我需要从表特定列获取所有数据并将其显示为html表列(选择选项)。但没有任何表现。我做错了什么? 我尝试了什么:

I need to get all the data from a table particular column and display into a html table column as (select option). But nothing is showing. what did i do wrong? What I have tried:

<form action="Report_customerHistory.php" method="POST"> <table align="center" border="0" align="center" style="width:40%"> <tr> <th> </th> <th> </th> <th> </th> </tr> <tr> <td> <select name="VehicleNo"> <option selected="" value="Default">(Please select.)</option> <?php include_once('db.php'); $result=mysqli_query($con,"SELECT * FROM vehicle_customer"); while($rawR1 = mysqli_fetch_array($result)) { $rawsData1=$rawR1['veh_reg_no']; ?> <option value="<?php echo $rawsData1; ?>"><?php echo $rawsData1;?></option> <?php } ?> </select> </td> <td> </td> <td> </td> </tr> </table>

推荐答案

result = mysqli_query( result=mysqli_query(

con, SELECT * FROM vehicle_customer); while( con,"SELECT * FROM vehicle_customer"); while(

rawR1 = mysqli_fetch_array( rawR1 = mysqli_fetch_array(

更多推荐

在表列中显示多个记录不起作用

本文发布于:2023-11-27 04:17:21,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1636559.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:多个   不起作用   表列中

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!