Re: Mail Again
| From: | David Robley | Date: | Tue, 23 Apr 2002 09:35:02 +0000 |
| Subject: | Re: Mail Again | ||
| References: | 1 2 3 | Groups: | php.db |
| Request: | Send a blank email to php-db+get-18754@lists.php.net to get a copy of this message | ||
In article <20020423071932.59140.qmail@pb1.pair.com>,
afrancis@camerondesign.co.uk says...
> Problem is!!!!!!! PHP.INI is at my ISP. Is there a way to make it think it
> has been changed.
>
> --
> Alex Francis
> Cameron Design
> 35, Drumillan Hill
> Greenock PA16 0XD
>
> Tel 01475 798106
> afrancis@camerondesign.co.uk
> http://www.camerondesign.co.uk
> David Robley <robleyd@paradise.net.nz> wrote in message
> news:MPG.172f74e297e2943e989702@news.php.net...
> > In article <20020422204015.20248.qmail@pb1.pair.com>,
> > afrancis@camerondesign.co.uk says...
> > > Got almost everything to work. Thank you all for your input. Code as
> > > follows:
> > > <?include ("../config.inc.php"); ?>
> > >
> > > <?php
> > >
> > > // setup SQL statement to retrieve link
> > >
> > > $SQL = " SELECT * FROM $tablename1 ";
> > > $SQL = $SQL . " WHERE id = $id ";
> > >
> > > // execute SQL statement
> > > $ret = mysql_db_query($dbname,$SQL,$link);
> > >
> > > if (!$ret) { echo("ERROR: " . mysql_error() . "\n$SQL\n"); }
> > >
> > > echo ("<P><B> Email Sent</B></P>\n");
> > >
> > > // retrieve values
> > > $row = mysql_fetch_array($ret);
> > > $email = $row["email"];
> > > $title = $row["title"];
> > > $comments = $row["comments"];
> > > $title = $row["title"];
> > >
> > > mail($email, $title, $comments, $emailaddress);
> > >
> > >
Try using the fourth parameter, as above. Also, look at the configuration
section of the manual for the Apache directives, some of which can be
used in .htaccess files. Finally, ini_set may be an option.
--
David Robley
Temporary Kiwi!
Quod subigo farinam