<pre> <form action="<?php echo htmlspecialchars($_SERVER[" PHP_SELF "]); ?>" method="post"> Keyword: <input name="serialnumber" type="text" size="10"> <input type="submit"> </form> <?php if ( !empty( $_POST ) ): $serial = htmlspecialchars( $_POST[ "serialnumber" ] ); $con=mysqli_connect("website.com","serials@website.com","ZyHbxSsdfsUY5Y","raspled_wordpress"); if (mysqli_connect_errno()) { echo "Failed to connect to MySQL: " . mysqli_connect_error(); } $result = mysqli_query($con,"SELECT * FROM wp_lic_key_tbl"); while($row = mysqli_fetch_assoc($result)) { $serial2 = $row['license_key'] ; mysqli_close($con); if(strpos($serial, $serial2) !== false){ echo "<div align='center'><h1>Serial Found!</h1></div>"; } else{ echo "<div align='center'><h1>Serial not Found!</h1></div>"; } } endif; ?>
"SELECT * FROM wp_lic_key_tbl where license_key=\"".$serial."\"";
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)