Jump to content

kayess2004

Members
  • Posts

    18
  • Joined

  • Last visited

Posts posted by kayess2004

  1. Hi,

     

    One way you could try would be as follows:

     

    // Database stuff here

    $count = 0;

    echo "<tr>";

    while($row = mysql_fetch_array($query))

    {

        if($count == 2)

        {

            echo "</tr><tr>";

            $count = 0;

        }

        echo "<td>" . $row['result'] . "</td>";

        $count++;

    }

    echo "</tr>";

     

    Hope this helps

     

  2. Hi,

     

    You can send HTML via mail() using the following in your $headers

     

    // To send HTML mail, the Content-type header must be set
    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    // Additional headers
    // $headers .= 'To: YoMama <yomama@meirsystems.com>' . "\r\n";
    $headers .= 'Cc: YoPapa <yopapa@meirsystems.com>' . "\r\n";
    $headers .= 'Bcc: YoBrudda <yobrudda@meirsystems.com>' . "\r\n";
    $headers .= 'From: YoMama <yomama@meirsystems.com>' . "\r\n";
    

     

    Just create your HTML for the body of the message and pass it to the mail() function.

     

    Hope this helps

  3. Hi,

    Give this a try,

    [code]
    <?php
    if (isset($_POST['ime']) && $_POST['ime'] != '') {
        echo $_POST['ime'];
    } else {
        echo "<i>&#1052;&#1086;&#1083;&#1103;, &#1074;&#1098;&#1074;&#1077;&#1076;&#1077;&#1090;&#1077; &#1042;&#1072;&#1096;&#1077;&#1090;&#1086; &#1080;&#1084;&#1077;!</i>";
    }
    ?>
    [/code]
  4. Hi OInter,

    Usually a subdomain is just a folder beneath the root directory,
    for example http://subdomain.mysite.com would be something like
    /home/mysite/subdomain/ where the root directory is /home/mysite/

    To find out what your root directory is you can use $_SERVER['DOCUMENT_ROOT'].

    Or you could use include($_SERVER['DOCUMENT_ROOT']."/subdomain/myfile.php");

    Hope this helps
  5. [!--quoteo(post=369553:date=Apr 28 2006, 10:28 PM:name=-Calum-)--][div class=\'quotetop\']QUOTE(-Calum- @ Apr 28 2006, 10:28 PM) [snapback]369553[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    Thanks Ray, but there's still an error, If I put in Microsoft.com, I get this

    [i] The IP address of microsoft.com is $site[/i]

    Any ideas?
    [/quote]

    Hi,
    Remove the quotes

    [code]$ipaddress = gethostbyname($site);[/code]

    HTH
  6. [!--quoteo(post=360168:date=Mar 31 2006, 07:47 AM:name=DJ Judas)--][div class=\'quotetop\']QUOTE(DJ Judas @ Mar 31 2006, 07:47 AM) [snapback]360168[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    I've no doubt it's just a simple problem that someone will say 'oh you just have to do this...' and it will be fixed.
    [/quote]

    Hi again,

    Oh you just have to do this :-)

    If you have a different style sheets for your include pages the main (index.php) style sheet will override
    them. You might want to look at that.

    HTH
  7. [!--quoteo(post=360095:date=Mar 31 2006, 04:49 AM:name=Oche)--][div class=\'quotetop\']QUOTE(Oche @ Mar 31 2006, 04:49 AM) [snapback]360095[/snapback][/div][div class=\'quotemain\'][!--quotec--]
    I need to setup something to allow a user to upload pictures and add a caption to them as well. I would like to first show all the pictures in thumbnail and then give them the option to expand on a click.

    Is there code of software to purchase that can help me with this? If software is only way, I do not want the user to have to have the software. I would want them to upload via a webpage.

    Thanks
    David
    [/quote]

    Hi Ooche,

    I found coppermine photo gallery to be pretty good
    you can find it at [a href=\"http://coppermine.sourceforge.net/\" target=\"_blank\"]sourceforge[/a]

    HTH
  8. Hi DJ,

    I think you are probably going down the wrong track with tables too.
    You should probably look at using CSS.
    Anyway here is what I usually do...

    [b]this is my index.php page[/b]
    [code]<!-- all the html header stuff goes here -->
    <div id="content">
    <?php

         if(isset($_GET['page']))
              include('includes/' . $_GET['page'] .'.inc.php');
         else
              include('includes/main.inc.php');
    ?>
    </div>[/code]

    Just create a CSS tag called #content to place the content where you
    want it, and whenever the $_GET['page'] is passed to the browser it
    will be included. (ie index.php?page=about, would include "includes/about.inc.php").

    Hope this helps a bit
    Steve
  9. Hi,

    I wouldn't recommend putting all you mailing list members in the "To:"
    section. You should "Bcc:" them instead otherwise your whole list will
    be visible to all of them.
    You could try this:

    [code]
    $sql = "select name, email from mailing_list";
    $result = mysql_query($sql);

    $bcc = "Bcc: ";

    while($row = mysql_fetch_array($result))
    {
        $bcc .= $row['name']." ".$row['email'].",";
    }
    $to = "Me <myemail@myserver.com>";
    $subject = // Whatever your subject
    $body = // Whatever your body

    $headers  = 'MIME-Version: 1.0' . "\r\n";
    $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n";
    $headers .= 'You <youremail@yourserver.com>'. "\r\n";
    $headers .= '$bcc' . "\r\n";

    mail($to, $subject, $body, $headers);
    [/code]

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