Ec (2); Membership Card credit query code. I am writing a simple member query system today, and now I have taken a copy of it. & lt; spanid & quot; jfcxtitle & quot; & gt; & lt; span & gt; & nbsp; & nbsp; & lt; formaction & quot; method & quot; script ec (2); script
Membership card points query codeI wrote a simple member Query System for my company today and now I have taken a copy of it.
If ($ _ POST ){
$ Value = addslashes (isset ($ _ POST ['point'])? $ _ POST ['point']: '');
If (empty ($ value) |! Is_numeric ($ value )){
Echo 'The incoming card number is incorrect! ';
} 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. check whether it is correct ';
} Else {
$ Rs = mysql_fetch_object ($ result );
Echo 'your current points are: ', $ rs ['Inte _ integral'];
Mysql_free_result ($ rs );
}
}
}
?>
Slice,