Advertisement
Guest User

user1.php

a guest
Mar 28th, 2012
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. <?php
  2. $con = mysql_connect("localhost","swichers_tagn","wichers90");
  3. if (!$con)
  4. {
  5. die('Could not connect: ' . mysql_error());
  6. }
  7.  
  8. mysql_select_db("swichers_jo151", $con);
  9.  
  10. $sql="INSERT INTO jos_users
  11. (id, name, username, usertype, block, sendEmail, gid)
  12. VALUES
  13. ('{$uinfo['id']}', '{$uinfo['name']}', '{$uinfo['username']}', 'Registered', 0, 1, 18)";
  14.  
  15. mysql_close($con);
  16.  
  17. if (!mysql_query($sql,$con))
  18. {
  19. die('Error: ' . mysql_error());
  20. }
  21. echo "1 record added... BOOM BABY!!!";
  22.  
  23. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement