Slow Mysql or PHP
Posted: Mon Jul 19, 2004 11:14 am
Not sure which, but this script runs really slow.
Code: Select all
<?php
echo $_SESSION['info'];
$headers = "MIME-Version: 1.0\r\n";
$headers .= "Content-type: text/html; charset=iso-8859-1\r\n";
$headers .= "To: ".$_SESSION['name'];
$headers .= "From: SevenGFX <Sales@sevengfx.com>\r\n";
mail("support@sevengfx.com", "New Template Request", $_SESSION['info'],$headers);
mail($_SESSION['email'], "Your order", $_SESSION['info'],$headers);
$db = mysql_connect("localhost","asdas","asdadfhngds");
mysql_select_db("sevengfx_com_-_hosted" , $db) or die("Couldn't open $db: ".mysql_error());
$_SESSION['name'] = $name;
$_SESSION['email'] = $email;
$_SESSION['username'] = $username;
$_SESSION['pass'] = $pass;
$sql = "INSERT INTO support_users (name,email,username,password,group_id,admin,level) VALUES ('$name','$email','$username','$pass','2','0','2')";
$result = mysql_query($sql);
echo 'An email contaning all of your info has been sent to the email you provided.';
echo '<br>You have also been registered at <a href="http://support.sevengfx.com">http://support.sevengfx.com</a>';
?>