Jump to content
  • 0

Let's make a module?



I have


   $server= "****";
   $user= "****";
   $pass= "****";
   $gamedb= "****";

$link = mysqli_connect("$server", "$user", "$pass", "$gamedb") or die( "Error:" . mysqli_connect_error());
$username = mysqli_real_escape_string($link, (string) $_POST['username']);
$displayname = mysqli_real_escape_string($link, (string) $_POST['display_name']);
$email = mysqli_real_escape_string($link, (string) $_POST['email']);
$password = sha1((string) $_POST['password']);
$query="INSERT INTO account (`username`, `sha_pass_hash`, `email`, `gmlevel`, `expansion`)
('$username', '$password', '$email','1', '3')";
mysqli_query($link, $query) or die ("Error:" . mysqli_errno($link));

I recently started using drupal and I was wondering if anyone knows how to create a hook to integrate this into the standard drupal integration?

Link to comment
Share on other sites

1 answer to this question

Recommended Posts


This topic is now archived and is closed to further replies.

  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. Privacy Policy Terms of Use