Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?
- include "lib/config.php";
- include "lib/sql.php";
- $invite = rand(0,10000);
- $checkInvite = mysql_query("SELECT * FROM ".$tabela3." WHERE invite='".$invite."'") or die(mysql_error());
- if (mysql_num_rows($checkInvite) > 0) {
- die('Convite jรก existente');
- } else {
- $criar=mysql_query("INSERT INTO ".$tabela3."(invite) VALUES('".$invite."')") or die(mysql_error());
- if ($criar) {echo "Convite criado com sucesso!";}
- };
Advertisement
Add Comment
Please, Sign In to add comment