Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $res=mysql_query("SELECT * FROM phaos_spells WHERE charid='$character->user' AND spellid='$spellid'");
- $num_rows=mysql_num_rows($result);
- if($num_rows==0)
- {
- $query="INSERT INTO phaos_spells (charid,spellid) VALUES ('$PHP_PHAOS_USER','$spellid')";
- $req=mysql_query($query);
- if (!$req)
- {
- echo "<B>Error ".mysql_errno()." :</B> ".mysql_error().""; exit;
- }
- }
- ?>
Add Comment
Please, Sign In to add comment