SMF Support > SMF 2.0.x Support
member emails
Ventic:
--- Quote from: pkrack on March 22, 2012, 03:34:02 AM ---The code i have posted will do automatic addition of emails. But you just need to fix the name of variable , tables and column as i am very busy now days coding a mobile toplist so i have no time to check the the smf tables. (sorry for that)
--- End quote ---
no problem,so i will make that php file,add it in my /forum folder and just link with it for example gaming-paradise.net/forum/email.php?
pkrack:
Yeah. That all (but fixing the names of table is required). You can also pm me the link if you got error while running the file.
pkrack:
Some lines which were missing.so i edited it.
--- Code: ---<?php include("settings.php");
connect($db_sever,$db_name,$db_user,$db_password);
$sql=mysql_Query("SELECT * from Smf_members");
$get=mysql_fetch_array($sql);
$email=$get[member_email]
//adding emails to textfile
$fn = "file.txt";
$file = fopen($fn, "a+");
$size = filesize($fn);
$space.= "\n";
fwrite($file, $get;
$text = fread($file,
$size);
fwrite ($file, $space);
fclose($file);
?>
--- End code ---
try this code. I havent connected to database. Also fix the members email column name from data base here
Ventic:
connect($db_sever,$db_name,$db_user,$db_password);
should add my details?
Ventic:
still the same white page
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version