/ Published in: PHP

Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
function create_key(&$cnnDB){ $foundkey = false; while(!$foundkey){ for($i=0;$i<5;$i++){ $key .= $all[$num]; $total += $num; } //Replace Oh with Zero, I with one $key ); //make checksum $key ); $SQL = 'select C_Key from customers where C_Key = "'.$key.'"'; $result = $cnnDB->GetRow($SQL); $foundkey = true; } } return $key; }
Comments
