Hiya!
I have a script that I am currently configuring:
That I want to run straight after an account creation, to pull the email address from a clientexec account and put it into my own database table. I then plan to get the user to configure their own details etc.
My problem is, this is only for one type of hosting that I am providing. It is a hosting account that comes accompanied with various software to accomplish some specific tasks, and I don't want anybody else to be able to access it.
If there any way I can get this script to run *only* after a specific package has been created?
Regards,
Adam
I have a script that I am currently configuring:
PHP:
<?php
$resource1 = mysql_connect('connection string 1');
$db = mysql_select_db(admin_plus, $resource1)
or die ("Couldn't select database.");
$resource2 = mysql_connect('connection string 2');
$db = mysql_select_db(admin_image, $resource2)
or die ("Couldn't select database.");
$sql = "SELECT email FROM users";
$query = mysql_query($sql, $resource1);
for ($i=0;$i<($result = mysql_fetch_assoc($query));$i++) {
mysql_query("INSERT INTO details ('email') VALUES('email') ($resource2)");
}
mysql_close($resource1);
mysql_close($resource2);
?>
My problem is, this is only for one type of hosting that I am providing. It is a hosting account that comes accompanied with various software to accomplish some specific tasks, and I don't want anybody else to be able to access it.
If there any way I can get this script to run *only* after a specific package has been created?
Regards,
Adam