Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <form action="random.php" method="post"><center>
- Username:<br/> <input type="text" name="name" /><br />
- Character:<br/> <input type="text" name="character" /><br />
- <input type="submit" value="Login" />
- </form>
- <?php
- $account = ($_POST['name']);
- $character = ($_POST['character']);
- $result = mysql_query(SELECT FROM dbo.account Where username = $account);
- $result2 = mysql_query(SELECT FROM dbo.character Where character = $character);
- $num_rows = $result
- $num_rows2 = $result2
- if ($num_rows == '1' && $num_rows2 == '1'){
- (INSERT INTO dbo.character level = '# you want to be set to');
- }
- elseif ($num_rows !== '1' && $num_rows2 !== '1'){
- echo "Information is wrong";
- }
Add Comment
Please, Sign In to add comment