Jump to content

Help Needed


whizzykid

Recommended Posts

Hi i have created my database and form but anytime people register i dont knw until i get to refresh my database.

 

Can anyone help with a code to send me a mail  anytime a new registration is done?

this is my code

 

  mysql_select_db($database_inteecom_ellen, $inteecom_ellen);
  $Result1 = mysql_query($insertSQL, $inteecom_ellen) or die(mysql_error());

  $insertGoTo = "Thank you.php";
  if (isset($_SERVER['QUERY_STRING'])) {
    $insertGoTo .= (strpos($insertGoTo, '?')) ? "&" : "?";
    $insertGoTo .= $_SERVER['QUERY_STRING'];
  }
  header(sprintf("Location: %s", $insertGoTo));
}

mysql_select_db($database_inteecom_ellen, $inteecom_ellen);
$query_Recordset1 = "SELECT * FROM register";
$Recordset1 = mysql_query($query_Recordset1, $inteecom_ellen) or die(mysql_error());
$row_Recordset1 = mysql_fetch_assoc($Recordset1);
$totalRows_Recordset1 = mysql_num_rows($Recordset1);
?>

Link to comment
https://forums.phpfreaks.com/topic/157328-help-needed/
Share on other sites

Hi thank you used it this way but didnt work.

mysql_select_db($database_inteecom_ellen, $inteecom_ellen);
  $Result1 = mysql_query($insertSQL, $inteecom_ellen) or die(mysql_error());
  $youremailaddress = '[email protected]';
  $subject = ' just Registered up.';
  $message = 'one new entry.';
mail($youremailaddress, $subject, $message);

 

 

Link to comment
https://forums.phpfreaks.com/topic/157328-help-needed/#findComment-829283
Share on other sites

Archived

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.