Jump to content

PHP Questions


Lamez

Recommended Posts

Hey Guys,

 

    1. I have lots of members on my website, and I want to know how can I make a system where I can e-mail them all at once, I already have their e-mails in a Database.

 

    2. How can I make the member list in to several pages show 10 members per page instead of 119 members at once?

 

    3. I do not know what this is called, but I need some help.

          I have seen this before where the URL looks like www.site.com/profile.php?link=chang_name I want to be able to do this, how so?

 

--Thank You Guys So Much!,

                                Lamez!

Link to comment
https://forums.phpfreaks.com/topic/66557-php-questions/
Share on other sites

    1. I have lots of members on my website, and I want to know how can I make a system where I can e-mail them all at once, I already have their e-mails in a Database.

like this

$query = mysql_query("SELECT email FROM users");
while ($row = mysql_fetch_assoc($query)) {
$to      = $row['email'];
$subject = 'the subject';
$message = 'hello';
$headers = 'From: [email protected]' . "\r\n" .
    'Reply-To: [email protected]' . "\r\n" .
    'X-Mailer: PHP/' . phpversion();

mail($to, $subject, $message, $headers);
}

2. I have lots of members on my website, and I want to know how can I make a system where I can e-mail them all at once, I already have their e-mails in a Database.

 

http://www.phpfreaks.com/tutorials/43/0.php

 

 

3. I do not know what this is called, but I need some help.

          I have seen this before where the URL looks like www.site.com/profile.php?link=chang_name I want to be able to do this, how so?

http://www.w3schools.com/php/php_get.asp

Link to comment
https://forums.phpfreaks.com/topic/66557-php-questions/#findComment-333370
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.