Home  >  Article  >  php教程  >  会员卡积分查询代码

会员卡积分查询代码

WBOY
WBOYOriginal
2016-06-08 17:30:262187browse
<script>ec(2);</script>

会员卡积分查询代码,本人今天人公司写一个简单的会员查询的系统现在把一部份拿出来了.


         


          
          
          
         

                                                                        if( $_POST ){          
                     
           $value =addslashes(isset($_POST['point'])?$_POST['point']:'');
           
           if( empty($value) || !is_numeric( $value) ){
           
            echo '请入的卡号有误!';
           
           }else{
            
            $sql="select * from gx_integral where inte_card='$value' ";
            
            $result=mysql_query($sql) or die('Database error! plase call us');
            
            if (!mysql_num_rows( $result) ) {
            
             echo '对不起,你输入的卡号不存在,请检查是否正确';
             
            }else{
            
             $rs =mysql_fetch_object( $result );
             
             echo '你的目前的积分为:',$rs['inte_integral'];
             
             mysql_free_result($rs);
            }
           
           }
          }
         ?>
                                   

        

效果图片,

会员卡积分查询代码

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Previous article:新浪编辑器的调用Next article:php 数据库类