[ciapug] Re: Re: Re: email processor malfunction
Mike Parks
mparks at captainjack.com
Thu Feb 2 13:20:12 CST 2006
Well the mailer class is the same one that i have posted before.
Yesterday I played around with the headers to see if it was a charset problem?
<?php
######################################################################
## Email processor class
## Requires 6 inputs
## ToMail, FromName, FromMail, Subject, Message and Company Name
class Email{
function SendMail(){
$boundary = "b".md5(uniqid(time()));
$Message = stripslashes($this->Message);
$headers .= "From: ".$this->FromName.
"<".$this->FromMail.">\n";
$headers .= "X-Priority: 0\n";
$headers .= "X-MSMail-Priority: Normal\n";
$headers .= "X-Mailer: ".$this->Company." Mailer\n";
$headers .= "Return-Path: ".$this->ToMail."\n";
$headers .= "X-Rcpt-To: ".$this->FromMail."\n";
$headers .= "Origin: ". $_SERVER['REMOTE_ADDR']."\n";
$headers .= "MIME-Version: 1.0\n";
$headers .= "Content-Type:
text/html;charset=\"ISO-8859-1\"\n";
#$headers .= "Content-Type:
multipart/alternative; boundary=\"=_reb-r{$bondary}\"\n";
$headers .= "Content-Transfer-Encoding:
quoted-printable\n";
if(!mail($this->ToMail, $this->Subject,
$Message, $headers)){
error_log("Message could not be
delivered to: " . $this->ToMail, "1", $this->FromMail);
}
}
}
?>
The message line is as follows. It looks a little funky because I am
adding pieces before and after the body. NEWS_HEADER and NEWS_FOOTER
are for if they want to make the newsletter look like their website,
they can take a template of the site and add the header portion of
the site above the message and the footer below. The stuff wrapped in
the nl2br() is text for the opt-out and profile update links.
<?
$message->Message =
NEWS_HEADER.stripslashes($row['xnews_body']).nl2br(SIGNATURE.
UPDATE_INFO."<a href=\"http://".$_SERVER['SERVER_NAME'].
SUBSCRIBE_PATH."?req=edit&id=".$send['xuser_id'].
"\">http://".$_SERVER['SERVER_NAME'].SUBSCRIBE_PATH.
"?req=edit&id=".$send['xuser_id']."</a>\n".NEWSLETTER_FOOTER.
"<a
href=\"http://".$_SERVER['SERVER_NAME'].SUBSCRIBE_PATH.
"?req=unsubscribe&opt_out=1&tk=".$send['xuser_token'].
"\">http://".$_SERVER['SERVER_NAME'].SUBSCRIBE_PATH.
"?req=unsubscribe&opt_out=1&tk=".$send['xuser_token'].
"</a>\n").NEWS_FOOTER;
?>
When I submit the message body to the database I wrap it in
addslashes() for apostrophe's and such. When I pull it out I
stripslashes(). I am using FckEditor for the ability to build the
message in HTML. The original message was a copy-n-paste from MS Word
but where this is happening we have deleted and retyped several
times. Still no change?
Mike
At 12:00 PM 2/2/06, you wrote:
>Send ciapug mailing list submissions to
> ciapug at cialug.org
>
>To subscribe or unsubscribe via the World Wide Web, visit
> http://cialug.org/mailman/listinfo/ciapug
>or, via email, send a message with subject or body 'help' to
> ciapug-request at cialug.org
>
>You can reach the person managing the list at
> ciapug-owner at cialug.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of ciapug digest..."
>
>
>Today's Topics:
>
> 1. Re: email processor malfunction (Mike Parks)
> 2. Re: Re: email processor malfunction (Out of Office) (Mark Clodi)
> 3. Re: Re: email processor malfunction (David Champion)
> 4. Iterating an empty result set (Chris Van Cleve)
> 5. Re: Iterating an empty result set (Tony Bibbs)
> 6. Re: Iterating an empty result set (Chris Van Cleve)
> 7. Re: Iterating an empty result set (Tony Bibbs)
>
>
>----------------------------------------------------------------------
>
>Message: 1
>Date: Wed, 01 Feb 2006 12:44:42 -0600
>From: Mike Parks <mparks at captainjack.com>
>Subject: [ciapug] Re: email processor malfunction
>To: ciapug at cialug.org
>Message-ID: <7.0.0.16.0.20060201123927.02355e80 at captainjack.com>
>Content-Type: text/plain; charset="us-ascii"; format=flowed
>
>I'm going crazy I think...
>
>I have an email newsletter type program that I built. I am having a
>problem with the message body. The newsletter is saved on a database.
>The message body looks correct in the database. And it displays
>correct on in the admin area. But when I send a test, I get goofiness
>in the message. At random places in the message I get things like
>recently is re c ently, AOL is A O L, Internet is I n te rnet. Anyone
>else come across any goofiness like this in their email processors?
>
>HELP......
>Mike
>
>At 12:00 PM 1/26/06, you wrote:
> >Send ciapug mailing list submissions to
> > ciapug at cialug.org
> >
> >To subscribe or unsubscribe via the World Wide Web, visit
> > http://cialug.org/mailman/listinfo/ciapug
> >or, via email, send a message with subject or body 'help' to
> > ciapug-request at cialug.org
> >
> >You can reach the person managing the list at
> > ciapug-owner at cialug.org
> >
> >When replying, please edit your Subject line so it is more specific
> >than "Re: Contents of ciapug digest..."
> >
> >
> >Today's Topics:
> >
> > 1. RE: RE: Carl-Olsen.COM Email from matthew donnici (Mike Parks)
> >
> >
> >----------------------------------------------------------------------
> >
> >Message: 1
> >Date: Wed, 25 Jan 2006 12:39:34 -0600
> >From: "Mike Parks" <parksmike at dwx.com>
> >Subject: [ciapug] RE: RE: Carl-Olsen.COM Email from matthew donnici
> >To: ciapug at cialug.org
> >Message-ID: <304dd9fd51694bcd8506254e21c32f03.parksmike at dwx.com>
> >Content-Type: text/plain; charset="utf-8"
> >
> >
> >I did a little research to find any information on the phpm
> >extension. I couldn't really find anything. The references to phpm
> >that I did find is acronyms for phpm as PHP Manual.
> >
> >The only thing I can think would be that they came up with this to
> >differentiate normal php files from php class files. Maybe they set
> >their server to run the php processor with the phpm file extension
> to do this.
> >
> >Maybe they started this to parody the aspx? Who knows? I don't think
> >it was intended for security. There is not a W3C precedence for it,
> >or anything on PHP.net other than the acronym reference.
> ><><><><><><><><><><><><><><><>
> >Mike Parks
> >
> >
> >
> > >------- Original Message -------
> > >From : ciapug-request at cialug.org[mailto:ciapug-request at cialug.org]
> > >Sent : 1/25/2006 12:00:03 PM
> > >To : ciapug at cialug.org
> > >Cc :
> > >Subject : RE: ciapug Digest, Vol 9, Issue 8
> > >
> > >Send ciapug mailing list submissions to
> > ciapug at cialug.org
> >
> >To subscribe or unsubscribe via the World Wide Web, visit
> > http://cialug.org/mailman/listinfo/ciapug
> >or, via email, send a message with subject or body 'help' to
> > ciapug-request at cialug.org
> >
> >You can reach the person managing the list at
> > ciapug-owner at cialug.org
> >
> >When replying, please edit your Subject line so it is more specific
> >than ""Re: Contents of ciapug digest...""
> >
> >
> >Today's Topics:
> >
> > 1. FW: Carl-Olsen.COM Email from matthew donnici
> > (carl-olsen at mchsi.com)
> >
> >
> >----------------------------------------------------------------------
> >
> >Message: 1
> >Date: Wed, 25 Jan 2006 06:06:40 -0600
> >From: <carl-olsen at mchsi.com>
> >Subject: [ciapug] FW: Carl-Olsen.COM Email from matthew donnici
> >To: <ciapug at cialug.org>
> >Message-ID: <000001c621a7$cd8469e0$1c00a8c0 at workstation8>
> >Content-Type: text/plain; charset=""us-ascii""
> >
> >
> >
> >-----Original Message-----
> >From: Carl Olsen [mailto:carl at carl-olsen.com]
> >Sent: Wednesday, January 25, 2006 5:28 AM
> >To: 'matthew at mesa.net.au'
> >Subject: RE: Carl-Olsen.COM Email from matthew donnici
> >
> >Hi Matthew,
> >
> >I can't remember, but I'm guessing it keeps people from navigating directly
> >to the file. Maybe there is a page that only makes sense in the context of
> >being included in another file. I really don't know.
> >
> >I had to stop reading the book because it got too complicated, but I've
> >started using a lot of the stuff from the first few chapters. I've picked
> >up some other books that cover the concepts (like factory) and I'll probably
> >go back and finish the book after I get a better understanding of the
> >underlying patterns and practices. It's a great book, although it does have
> >a significant number of errors. The errors usually make me look at the
> >examples in more depth and actually help me learn better, so I would not say
> >the errors are enough to stop me from recommending this book.
> >
> >My favorite programming language is C# and ASP.NET 2.0, but most of the
> >stuff I'm learning is easily applicable to PHP. I write about 95% of my
> >code at work in PHP and the other 5% is C# (they give me a few projects
> >where I can choose the programming language, just to keep me happy).
> >
> >Thank you for asking!
> >
> >Carl
> >
> >-----Original Message-----
> >From: matthew at mesa.net.au [mailto:matthew at mesa.net.au]
> >Sent: Tuesday, January 24, 2006 10:12 PM
> >To: carl at carl-olsen.com
> >Subject: Carl-Olsen.COM Email from matthew donnici
> >
> >Date: 01/24/2006 23:47:42
> >First Name: matthew
> >Last Name: donnici
> >Address: 123
> >City: melbourne
> >State: IA
> >Country: AU
> >Zip Code: 1234
> >Phone: 1234
> >Email: matthew at mesa.net.au
> >Comments: Hi Carl, I am currently reading the Wrox PHP5 book and was
> >wondering if you found out why some classes had .phpm ?
> >read you post here
> >http://cialug.org/pipermail/ciapug/2005-August/001021.html
> >
> >Cheers !
> >
> >
> >
> >
> >------------------------------
> >
> >_______________________________________________
> >ciapug mailing list
> >ciapug at cialug.org
> >http://cialug.org/mailman/listinfo/ciapug
> >
> >
> >End of ciapug Digest, Vol 9, Issue 8
> >************************************
> >
> >
> >-------------- next part --------------
> >An HTML attachment was scrubbed...
> >URL:
> >http://cialug.org/pipermail/ciapug/attachments/20060125/2e757e06/at
> tachment-0001.html
> >
> >------------------------------
> >
> >_______________________________________________
> >ciapug mailing list
> >ciapug at cialug.org
> >http://cialug.org/mailman/listinfo/ciapug
> >
> >
> >End of ciapug Digest, Vol 9, Issue 9
> >************************************
>
><><><><><><><><><><><><><><><>
>Mike Parks
>Captain Jack Communications
>Email: techsupport at captainjack.com
>Phone: 515-964-8500
>Toll-Free: 800-581-3230
>
>
>
>------------------------------
>
>Message: 2
>Date: Wed, 01 Feb 2006 12:39:17 -0600
>From: "Mark Clodi" <MClodi at ifmc.org>
>Subject: Re: [ciapug] Re: email processor malfunction (Out of Office)
>To: <ciapug at cialug.org>
>Message-ID: <s3e0abfe.087 at mail2.ifmc.org>
>Content-Type: text/plain; charset=US-ASCII
>
>I am on vacation and will be back on February 13th. Please contact
>Jennifer Harvey (jharvey at ifmc.com) if this is an emergency, otherwise I
>will respond to you as quickly as possible when I return.
>
>
>
>------------------------------
>
>Message: 3
>Date: Wed, 01 Feb 2006 16:16:19 -0600
>From: David Champion <dave at visionary.com>
>Subject: Re: [ciapug] Re: email processor malfunction
>To: ciapug at cialug.org
>Message-ID: <43E13333.3060505 at visionary.com>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>You can market this to spammers... just make sure you break up the right
>words.
>
>I have a mass mailer php app we call "spammer", it doesn't seem to have
>any issues with this sort of thing. I also store the message body in a
>database.
>
>Can you give us a code snippet to look at?
>
>-dc
>
>Mike Parks wrote:
> > I'm going crazy I think...
> >
> > I have an email newsletter type program that I built. I am having a
> > problem with the message body. The newsletter is saved on a database.
> > The message body looks correct in the database. And it displays correct
> > on in the admin area. But when I send a test, I get goofiness in the
> > message. At random places in the message I get things like recently is
> > re c ently, AOL is A O L, Internet is I n te rnet. Anyone else come
> > across any goofiness like this in their email processors?
> >
> > HELP......
> > Mike
> >
> > At 12:00 PM 1/26/06, you wrote:
> >
> >> Send ciapug mailing list submissions to
> >> ciapug at cialug.org
> >>
> >> To subscribe or unsubscribe via the World Wide Web, visit
> >> http://cialug.org/mailman/listinfo/ciapug
> >> or, via email, send a message with subject or body 'help' to
> >> ciapug-request at cialug.org
> >>
> >> You can reach the person managing the list at
> >> ciapug-owner at cialug.org
> >>
> >> When replying, please edit your Subject line so it is more specific
> >> than "Re: Contents of ciapug digest..."
> >>
> >>
> >> Today's Topics:
> >>
> >> 1. RE: RE: Carl-Olsen.COM Email from matthew donnici (Mike Parks)
> >>
> >>
> >> ----------------------------------------------------------------------
> >>
> >> Message: 1
> >> Date: Wed, 25 Jan 2006 12:39:34 -0600
> >> From: "Mike Parks" <parksmike at dwx.com>
> >> Subject: [ciapug] RE: RE: Carl-Olsen.COM Email from matthew donnici
> >> To: ciapug at cialug.org
> >> Message-ID: <304dd9fd51694bcd8506254e21c32f03.parksmike at dwx.com>
> >> Content-Type: text/plain; charset="utf-8"
> >>
> >>
> >> I did a little research to find any information on the phpm extension.
> >> I couldn't really find anything. The references to phpm that I did
> >> find is acronyms for phpm as PHP Manual.
> >>
> >> The only thing I can think would be that they came up with this to
> >> differentiate normal php files from php class files. Maybe they set
> >> their server to run the php processor with the phpm file extension to
> >> do this.
> >>
> >> Maybe they started this to parody the aspx? Who knows? I don't think
> >> it was intended for security. There is not a W3C precedence for it, or
> >> anything on PHP.net other than the acronym reference.
> >> <><><><><><><><><><><><><><><>
> >> Mike Parks
> >>
> >>
> >>
> >> >------- Original Message -------
> >> >From : ciapug-request at cialug.org[mailto:ciapug-request at cialug.org]
> >> >Sent : 1/25/2006 12:00:03 PM
> >> >To : ciapug at cialug.org
> >> >Cc :
> >> >Subject : RE: ciapug Digest, Vol 9, Issue 8
> >> >
> >> >Send ciapug mailing list submissions to
> >> ciapug at cialug.org
> >>
> >> To subscribe or unsubscribe via the World Wide Web, visit
> >> http://cialug.org/mailman/listinfo/ciapug
> >> or, via email, send a message with subject or body 'help' to
> >> ciapug-request at cialug.org
> >>
> >> You can reach the person managing the list at
> >> ciapug-owner at cialug.org
> >>
> >> When replying, please edit your Subject line so it is more specific
> >> than ""Re: Contents of ciapug digest...""
> >>
> >>
> >> Today's Topics:
> >>
> >> 1. FW: Carl-Olsen.COM Email from matthew donnici
> >> (carl-olsen at mchsi.com)
> >>
> >>
> >> ----------------------------------------------------------------------
> >>
> >> Message: 1
> >> Date: Wed, 25 Jan 2006 06:06:40 -0600
> >> From: <carl-olsen at mchsi.com>
> >> Subject: [ciapug] FW: Carl-Olsen.COM Email from matthew donnici
> >> To: <ciapug at cialug.org>
> >> Message-ID: <000001c621a7$cd8469e0$1c00a8c0 at workstation8>
> >> Content-Type: text/plain; charset=""us-ascii""
> >>
> >>
> >>
> >> -----Original Message-----
> >> From: Carl Olsen [mailto:carl at carl-olsen.com]
> >> Sent: Wednesday, January 25, 2006 5:28 AM
> >> To: 'matthew at mesa.net.au'
> >> Subject: RE: Carl-Olsen.COM Email from matthew donnici
> >>
> >> Hi Matthew,
> >>
> >> I can't remember, but I'm guessing it keeps people from navigating
> >> directly
> >> to the file. Maybe there is a page that only makes sense in the
> >> context of
> >> being included in another file. I really don't know.
> >>
> >> I had to stop reading the book because it got too complicated, but I've
> >> started using a lot of the stuff from the first few chapters. I've
> >> picked
> >> up some other books that cover the concepts (like factory) and I'll
> >> probably
> >> go back and finish the book after I get a better understanding of the
> >> underlying patterns and practices. It's a great book, although it
> >> does have
> >> a significant number of errors. The errors usually make me look at the
> >> examples in more depth and actually help me learn better, so I would
> >> not say
> >> the errors are enough to stop me from recommending this book.
> >>
> >> My favorite programming language is C# and ASP.NET 2.0, but most of the
> >> stuff I'm learning is easily applicable to PHP. I write about 95% of my
> >> code at work in PHP and the other 5% is C# (they give me a few projects
> >> where I can choose the programming language, just to keep me happy).
> >>
> >> Thank you for asking!
> >>
> >> Carl
> >>
> >> -----Original Message-----
> >> From: matthew at mesa.net.au [mailto:matthew at mesa.net.au]
> >> Sent: Tuesday, January 24, 2006 10:12 PM
> >> To: carl at carl-olsen.com
> >> Subject: Carl-Olsen.COM Email from matthew donnici
> >>
> >> Date: 01/24/2006 23:47:42
> >> First Name: matthew
> >> Last Name: donnici
> >> Address: 123
> >> City: melbourne
> >> State: IA
> >> Country: AU
> >> Zip Code: 1234
> >> Phone: 1234
> >> Email: matthew at mesa.net.au
> >> Comments: Hi Carl, I am currently reading the Wrox PHP5 book and was
> >> wondering if you found out why some classes had .phpm ?
> >> read you post here
> >> http://cialug.org/pipermail/ciapug/2005-August/001021.html
> >>
> >> Cheers !
> >>
> >>
> >>
> >>
> >> ------------------------------
> >>
> >> _______________________________________________
> >> ciapug mailing list
> >> ciapug at cialug.org
> >> http://cialug.org/mailman/listinfo/ciapug
> >>
> >>
> >> End of ciapug Digest, Vol 9, Issue 8
> >> ************************************
> >>
> >>
> >> -------------- next part --------------
> >> An HTML attachment was scrubbed...
> >> URL:
> >>
> http://cialug.org/pipermail/ciapug/attachments/20060125/2e757e06/attachment-0001.html
>
> >>
> >>
> >> ------------------------------
> >>
> >> _______________________________________________
> >> ciapug mailing list
> >> ciapug at cialug.org
> >> http://cialug.org/mailman/listinfo/ciapug
> >>
> >>
> >> End of ciapug Digest, Vol 9, Issue 9
> >> ************************************
> >
> >
> > <><><><><><><><><><><><><><><>
> > Mike Parks
> > Captain Jack Communications
> > Email: techsupport at captainjack.com
> > Phone: 515-964-8500
> > Toll-Free: 800-581-3230
> > _______________________________________________
> > ciapug mailing list
> > ciapug at cialug.org
> > http://cialug.org/mailman/listinfo/ciapug
> >
>
>
>
>
>------------------------------
>
>Message: 4
>Date: Thu, 2 Feb 2006 09:18:19 -0600
>From: Chris Van Cleve <vanish at dreamscapevisionery.com>
>Subject: [ciapug] Iterating an empty result set
>To: ciapug at cialug.org
>Message-ID: <52224ded765023a6b3becbd3ec2eb428 at dreamscapevisionery.com>
>Content-Type: text/plain; charset=US-ASCII; format=flowed
>
>I am displaying a 5 day outlook of upcoming events. Each day displays a
>box with the date at the top, and any events for that day below. That's
>all fine and dandy, but I've run into a problem ad for whatever reason
>I can't get my head wrapped around it today.
>
>If the db query returns an empty result set (there are no events over
>the next five days), none of the boxes show. Here is the code I'm using
>(note: the DL is for CSS formatting. Yes it's a cheap trick. No I'm not
>after comments on it.):
>
>$cal_sql = "SELECT * FROM ipm_events WHERE event_date BETWEEN CURDATE()
>AND CURDATE() + 5";
>
>$events = $idb->Execute("$cal_sql");
>
>$month = date(F);
>
>$day_events = "<ul id='events'>\n";
>
>while (!$events->EOF)
>{
> for ($i=0; $i < 5; $i++)
> {
> $day = date(d) + $i;
>
> if ($events->fields['event_description'] == "")
> {
> $events = 'No Events';
> } else {
> $events = $events->fields['event_description'];
> }
>
> $day_events .= "<dl class='events'>
> <dt><img src='/images/calendar/events/month_" . $month . ".png'
>title='" . $month . "'>
> <img src='/images/calendar/events/day_" . $day . ".png'
>title='" . $day . "'></dt>
> <dd>" . $events . "</dd>
> </dl>";
> $events->MoveNext();
> }
>}
>
>$day_events .= "</ul>\n";
>
>The catch is obviously the use of:
>
> while (!$events->EOF)
>
>With an empty result set, it is EOF immediately, so no event boxes
>display on the page. What should I be using to iterate that will allow
>all 5 days to display even if there are absolutely no events over those
>days?
>
>Chris VC
>
>
>
>------------------------------
>
>Message: 5
>Date: Thu, 02 Feb 2006 09:40:31 -0600
>From: Tony Bibbs <tony at tonybibbs.com>
>Subject: Re: [ciapug] Iterating an empty result set
>To: ciapug at cialug.org
>Message-ID: <43E227EF.50209 at tonybibbs.com>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>Something like this?
>
>for ($i=0; $i < 5; $i++) {
> if ($events->EOF) {
> // print blank boxes
> } else {
> // print data in boxes
> }
>}
>
>Chris Van Cleve wrote:
> > I am displaying a 5 day outlook of upcoming events. Each day displays a
> > box with the date at the top, and any events for that day below. That's
> > all fine and dandy, but I've run into a problem ad for whatever reason I
> > can't get my head wrapped around it today.
> >
> > If the db query returns an empty result set (there are no events over
> > the next five days), none of the boxes show. Here is the code I'm using
> > (note: the DL is for CSS formatting. Yes it's a cheap trick. No I'm not
> > after comments on it.):
> >
> > $cal_sql = "SELECT * FROM ipm_events WHERE event_date BETWEEN CURDATE()
> > AND CURDATE() + 5";
> >
> > $events = $idb->Execute("$cal_sql");
> >
> > $month = date(F);
> >
> > $day_events = "<ul id='events'>\n";
> >
> > while (!$events->EOF)
> > {
> > for ($i=0; $i < 5; $i++)
> > {
> > $day = date(d) + $i;
> >
> > if ($events->fields['event_description'] == "")
> > {
> > $events = 'No Events';
> > } else {
> > $events = $events->fields['event_description'];
> > }
> >
> > $day_events .= "<dl class='events'>
> > <dt><img src='/images/calendar/events/month_" . $month .
> > ".png' title='" . $month . "'>
> > <img src='/images/calendar/events/day_" . $day . ".png'
> > title='" . $day . "'></dt>
> > <dd>" . $events . "</dd>
> > </dl>";
> > $events->MoveNext();
> > }
> > }
> >
> > $day_events .= "</ul>\n";
> >
> > The catch is obviously the use of:
> >
> > while (!$events->EOF)
> >
> > With an empty result set, it is EOF immediately, so no event boxes
> > display on the page. What should I be using to iterate that will allow
> > all 5 days to display even if there are absolutely no events over those
> > days?
> >
> > Chris VC
> >
> > _______________________________________________
> > ciapug mailing list
> > ciapug at cialug.org
> > http://cialug.org/mailman/listinfo/ciapug
>
>
>------------------------------
>
>Message: 6
>Date: Thu, 2 Feb 2006 10:04:05 -0600
>From: Chris Van Cleve <vanish at dreamscapevisionery.com>
>Subject: Re: [ciapug] Iterating an empty result set
>To: ciapug at cialug.org
>Message-ID: <025851df68aab60c78a1f05a100e80d8 at dreamscapevisionery.com>
>Content-Type: text/plain; charset=US-ASCII; format=flowed
>
>I knew the answer was simple. I just couldn't get my head around it
>today. Migraines ftw.
>
>On Feb 2, 2006, at 9:40 AM, Tony Bibbs wrote:
>
> > for ($i=0; $i < 5; $i++) {
> > if ($events->EOF) {
> > // print blank boxes
> > } else {
> > // print data in boxes
> > }
> > }
>
>
>
>------------------------------
>
>Message: 7
>Date: Thu, 02 Feb 2006 10:50:46 -0600
>From: Tony Bibbs <tony at tonybibbs.com>
>Subject: Re: [ciapug] Iterating an empty result set
>To: ciapug at cialug.org
>Message-ID: <43E23866.4090806 at tonybibbs.com>
>Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
>LOL, been there.
>
>Chris Van Cleve wrote:
> > I knew the answer was simple. I just couldn't get my head around it
> > today. Migraines ftw.
> >
> > On Feb 2, 2006, at 9:40 AM, Tony Bibbs wrote:
> >
> >> for ($i=0; $i < 5; $i++) {
> >> if ($events->EOF) {
> >> // print blank boxes
> >> } else {
> >> // print data in boxes
> >> }
> >> }
> >
> > _______________________________________________
> > ciapug mailing list
> > ciapug at cialug.org
> > http://cialug.org/mailman/listinfo/ciapug
>
>
>------------------------------
>
>_______________________________________________
>ciapug mailing list
>ciapug at cialug.org
>http://cialug.org/mailman/listinfo/ciapug
>
>
>End of ciapug Digest, Vol 10, Issue 1
>*************************************
<><><><><><><><><><><><><><><>
Mike Parks
Captain Jack Communications
Email: techsupport at captainjack.com
Phone: 515-964-8500
Toll-Free: 800-581-3230
More information about the ciapug
mailing list