Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- auth();
- function auth() {
- $connection = mysql_connect ("localhost", "root", "gov291f5541_nasa");
- if ($connection == false)
- {
- print ("Połączenie connect");
- mysql_error ();
- return false;
- }
- $result = mysql_select_db ("test");
- if ($result == false)
- {
- print ("Baza");
- mysql_error();
- return false;
- }
- $liczba = mt_rand(100000, 999999);
- $q = "INSERT INTO ggczat_auth (`numer`, `nick`, `kanal`, `pass`) VALUES ('0',
- 'NPP', 'kanalik', '". mt_rand(2, 100)."')";
- print ($q);
- $result = mysql_query($q);
- if ($result == NULL)
- {
- mysql_error();
- return false;
- }
- return $liczba;
- }
- ?>
Add Comment
Please, Sign In to add comment