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,