Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function RetreiveLicense($userid, $product)
- {
- $server = 'localhost';
- $username = 'xxxxxxxxxxx';
- $password = 'xxxxxxxxxxxxxxxxxxx';
- $database = 'xxxxxxxxxxxxxxxx';
- $con = mysql_connect($server,$username,$password);
- mysql_select_db($database, $con);
- $command = "SELECT Licence_No FROM vill_licences WHERE UserID=$userid and Application_No='$product' limit 1";
- $result = mysql_query($command);
- echo mysql_error($con);
- if(mysql_num_rows($result) == 0)
- {
- echo mysql_error($con);
- return "";
- }
- else
- {
- echo mysql_error($con);
- mysql_result($result,0);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement