[PHP] Re: OOP design question

2004-01-05 Thread Geoffrey Thompson
"Mike Smith" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am starting to get a handle (I think) on OOP. I was wondering if > anyone would care to comment on what I think I understand: > > For simplicity's sake class.php contains AddItem() and DisplayItems(). > Since submitting f

[PHP] Re: Redirection to a named frame

2004-01-05 Thread Geoffrey Thompson
BTW - I misquoted - the example below was in the "PHP Cookbook" (page 173) - not in the "MySQL Cookbook" - my apologies... "Geoffrey Thompson" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I would prefer not having to use script - is there

[PHP] Re: Redirection to a named frame

2004-01-05 Thread Geoffrey Thompson
w about simply: > > echo " > > window.top.main.location= '<a href="http://localhost/phase1/report.php">http://localhost/phase1/report.php</a>''; > "; > > ? > > "Geoffrey Thompson" <[EMAIL PROTECTED]> w

[PHP] Re: Compare Array Elements

2004-01-03 Thread Geoffrey Thompson
One approach: for ($i=0; $i < sizeof($xArray); $i++) { if ($xArray[$i] == $yArray[$i]) { new_yArray(); break; } } "Wknit" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > I am a novice, I am sure this is pretty simple... > > I have two arrays of integers, equa

[PHP] Redirection to a named frame

2004-01-02 Thread Geoffrey Thompson
I was only able to find one reference to targeting a named frame on a redirection, in the "MySQL Cookbook" by O'Reilly. According to the book, this should work: header('Window-target: main'); header('Location: http://localhost/phase1/report.php'); But, alas, it seems to only load up the curren

[PHP] Problems downloading files via https in IE 6

2003-12-06 Thread Geoffrey Thompson
I posted this once under another subject, but didn't get any responses. I'm stuck on this, and could really use some help. I have the following php code for downloading a file to the user via the browser: // Open csv file. $fp = fopen("fileOnServer.csv", "r"); // Set headers for csv downl

[PHP] Exporting Data as CSV - IE6/HTTPS Problem?

2003-12-04 Thread Geoffrey Thompson
All: I have the following php code for downloading a file to the user via the browser: // Open csv file. $fp = fopen($fileName, "r"); // Set file name. $dwnldName = "report"; // Set headers for csv download. header("Content-Type:application/csv"); header("Content-Disposition:attac