dpwo36915 2017-03-10 23:42
浏览 48

在Codeigniter中没有刷新页面的插入和查看数据的一个日期选择器

I have made a Single Page to Insert and View Data and Only One DatePicker is used, page is divided in two divs one for form Insertion and other for $result Retrieval (Fetching Data).

My Question is, whatever the Date I select on the Date Picker I want to load the data of that specific date into the $result Div without Refreshing the whole Page. A Few lines from my code to understand:

<div class="col-md-6 col-md-offset-3" >//div for date
            <form method="post" action="<?php echo base_url(); ?>......">
                        <input type="text" " name="date"     id="datepicker"value="<?php echo $formattedDate; ?>">
                    </div>
<div class="col-md-12">
                //div for form insertion
</div>
<div class="col-md-12">
                //div for data Retrieval
                    <?php
                    foreach($AmountReceivedonDate->result() as $row)
                    {?><br>
                            <h4><?php echo $row->amount ?>-00</h4>
                                <h4><?php echo $row->name ?></h4>
                    <?php }
                    ?>
</div>

Now How can I Get Latest data (as per Given Date)

foreach($AmountReceivedonDate->result() as $row)

without Refresing Page.. Is it Possible??

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 想通过pywinauto自动电机应用程序按钮,但是找不到应用程序按钮信息
    • ¥15 MATLAB中streamslice问题
    • ¥15 如何在炒股软件中,爬到我想看的日k线
    • ¥15 51单片机中C语言怎么做到下面类似的功能的函数(相关搜索:c语言)
    • ¥15 seatunnel 怎么配置Elasticsearch
    • ¥15 PSCAD安装问题 ERROR: Visual Studio 2013, 2015, 2017 or 2019 is not found in the system.
    • ¥15 (标签-MATLAB|关键词-多址)
    • ¥15 关于#MATLAB#的问题,如何解决?(相关搜索:信噪比,系统容量)
    • ¥500 52810做蓝牙接受端
    • ¥15 基于PLC的三轴机械手程序