Membership Card Integration Query code

Source: Internet
Author: User

Membership Card Integration Query code , I today's people to write a simple membership query system now put a part out.

<span id= "Jfcxtitle" ></span>
<form action= "" method= "Post" enctype= "Multipart/form-data" >
<label for= "point" > enter your card number:</label>
<input name= "point" type= "text" id= "point" value= "Please enter your card number" onclick= "this.value="; " >
<input language= "JavaScript" onclick= "If" (typeof (page_clientvalidate) = = ' function ') page_clientvalidate (); "Name=" Submit "id=" "type=" "Submit" tabindex= "3" value= "Determine the query"/>
</form><font color=red>
<?php
if ($_post) {

$value =addslashes (isset ($_post[' point ']), $_post[' point '];

if (Empty ($value) | |!is_numeric ($value)) {

Echo ' Please enter the card number is wrong! ';

}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 ' Sorry, the card number you entered does not exist, please check the correct ';

}else{

$rs =mysql_fetch_object ($result);

Echo ' Your current integral is: ', $rs [' inte_integral '];

Mysql_free_result ($RS);
}

}
}
?>
</font>
</div>

Effect picture,

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.