SHARE
TWEET

Untitled

a guest Jun 19th, 2017 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. $dbhost = 'removed';
  3. $dbuser = 'removed';
  4. $dbpass = 'removedd';
  5.  
  6. $conn = mysql_connect($dbhost, $dbuser, $dbpass) or die                      ('Error connecting to mysql');
  7.  
  8. $dbname = 'removed';
  9.  
  10. $regnum = array("1","2","3","4","5","6","7","8","9");
  11.         for ($i=0; $i<=10; $i++)
  12.         {
  13.             $array = serialize($regnum);
  14.                        
  15.                    
  16.                     $check[$random]=1;
  17.                    
  18.             $regdisplay .= $regnum[$random];}
  19.                        
  20.        
  21. mysql_query("INSERT INTO `$dbuser`.`$dbname` (`regnum`) VALUES ('$regnum');
  22.  
  23. array = unserialize($row['regnum']);
  24.  
  25.    echo "<br> $regdisplay"; // print result
  26. echo "Record added";
  27.  
  28. ?>
RAW Paste Data
Top