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
Share on other sites

Well I Can Answer The 3rd

 

<?php
$getlink = $_GET["link"];

if ($getlink == "page1") {
echo "Hello This Is Page 1";
}
elseif ($getlink == "page2") {
echo "Welcome To Page 2";
}
else {
echo "Ooops! Page Not Found";
}
?>

Try That And Just Keep Playing Around With It ;D

Link to comment
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: webmaster@example.com' . "\r\n" .
    'Reply-To: webmaster@example.com' . "\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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.