Re: PHP list posting confirmation for jtjohnston@courrier.usherb.ca
| From: | jtjohnston | Date: | Sat, 15 Dec 2001 22:02:02 +0000 |
| Subject: | Re: PHP list posting confirmation for jtjohnston@courrier.usherb.ca | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-77830@lists.php.net to get a copy of this message | ||
I have to subscribe to the mailing list now, in order to use the news group?
Somebody has some work to do :)
> Sorry for the hassle, but the volume of unsolicited commercial
> email sent to PHP mailing lists has made this step necessary.
Yeah but it's supposed to be a news server??!!
Here's my question: »:)
I have a mess of variables I HTML from a couple of different scripts,
so I combined them into fields_to_include.inc
So now, I do this:
$news = mysql_query('select * from ccl where ... order by AU asc');
while ($personne = mysql_fetch_object($news))
{
include "fields_to_include.inc";
}
Of course my variables I now call in *.inc do not work. ...
So how do I make "$personne->AU" find it's original value using that *.inc?
---This is my fields_to_include.inc file: ------------------------------
<? php
/*
content of fields_to_include.inc
global $personne->AU; #dedfinitely does not work
I have read the FAQ.
*/
if($personne->AU != ""){echo"<tr><td><b><<a
href=\"javascript:displayHelp('codes.htm#AU');\
">AU</a>></b></td><td>".$personne->AU."</td></tr>\n";}
if($personne->ST != ""){echo"<tr><td><b><<a
href=\"javascript:displayHelp('codes.htm#ST');\
">ST</a>></b></td><td>".$personne->ST."</td></tr>\n";}
if($personne->SD != ""){echo"<tr><td><b><<a
href=\"javascript:displayHelp('codes.htm#SD');\
">SD</a>></b></td><td>".$personne->SD."</td></tr>\n";}
if($personne->SC != ""){echo"<tr><td><b><<a
href=\"javascript:displayHelp('codes.htm#SC');\
">SC</a>></b></td><td>".$personne->SC."</td></tr>\n";}
?>