RE: [PHP] PHP Error
Yeah right... Sure, we can use ob_start(), but the poster of original message apparently does not make any use of these functions , therefore his problem is easily solvable by just keeping track of output start rather then creating a whole buffering system. After all, why would you use some strange (for the poster) functions when he can just delete the space/newline after ?> ? Thanks for suggesting an alternative. Maxim Maletsky www.PHPBeginner.com -Original Message- From: Jochen Kaechelin [mailto:[EMAIL PROTECTED]] Sent: Monday, April 09, 2001 6:49 PM To: Maxim Maletsky Subject: RE: [PHP] PHP Error > it says that on line 15 of settings.php there's an output. > > you need to set cookies BEFORE any output. > that's not quiet right! you can use the output buffering functions such as ob_start() to avoid this problem! -- phpArbeitsgruppe in Gruendung - Jochen Kaechelin Stuttgarter Str.3, D-73033 Goeppingen Tel. 07161-92 95 94, Fax 07161-92 95 98 http://www.php-arbeitsgruppe.de, mailto:[EMAIL PROTECTED] Emanuel.exe -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[PHP] Re: Job Opportunity
Mr. Hunter, My apologies for the delay in following back up with you. My client has expressed interest in talking with you. I am in the process of pinning them down on whether they would like to do a phone or face-to-face interview - and also what their schedule/time frame is. I will follow up with you as soon as I hear back. Please give me an idea of what might work best for you so I can coordinate accordingly. Thanks! Jessica Jessica K. Gillert Account Manager Hall Kinion ... "The Talent Source for Emerging Technologies" www.hallkinion.com 801.322.2225 x206 801.322.2205 fax
[PHP] problem with a while loop
From: [EMAIL PROTECTED] Subject:problem with a while loop Date: May 6, 2004 11:25:28 AM EDT To: [EMAIL PROTECTED] Hey everybody! I am new to php (and mySQL) and I am working on a php page that links up to a mySQL database. My current code works up to a point, BUT what happens is that I try to have a while loop and check a variable with an inner while loop but it only catches after the first complete cycle. Basically, some producers will only call up one row, but you always get 2 at the minimum with this code below. I have tried lots of different things which all lead to the second row endlessly repeating or the page not loading at all. Any ideas? Please email me directly since I am on the digest. Thanks Jessica (Also, I am new to this list and if this email is in the wrong format I apologize.) CODE : $query = "select * from wine where REGION like 'California' order by PRODUCE,DESCRIPT,VINTAGE"; $result = mysql_query($query); $num_results = mysql_num_rows($result); echo "Number of wines found: ".$num_results.""; $i =0; while ($i < $num_results) { $row = mysql_fetch_array($result); $producer = $row["PRODUCE"]; echo ""; echo stripslashes($row["PRODUCE"]); echo ""; $color = "#cc"; echo ""; // id number echo stripslashes($row["INVID"]); echo ""; // vintage echo stripslashes($row["VINTAGE"]); echo " "; // description echo stripslashes($row["DESCRIPT"]); echo " "; // bottle size if ($row["BOTSIZE"] != "750ml"){ echo ""; echo stripslashes($row["BOTSIZE"]); echo ""; } if ($row["NOTES"] != ""){ echo ""; echo stripslashes($row["NOTES"]); echo ""; } echo ""; // list price echo ""; echo stripslashes($row["WINENUM"]); echo ""; // sale price echo ""; echo stripslashes($row["SALEPRICE"]); echo ""; while ( $producer == $row["PRODUCE"]) { if ($color == "#ccdd99") $color = "#cc"; else $color = "#ccdd99"; $row = mysql_fetch_array($result); echo ""; // id number echo stripslashes($row["INVID"]); echo ""; // vintage echo stripslashes($row["VINTAGE"]); echo " "; // description echo stripslashes($row["DESCRIPT"]); echo " "; // bottle size if ($row["BOTSIZE"] != "750ml"){ echo ""; echo stripslashes($row["BOTSIZE"]); echo ""; } if ($row["NOTES"] != ""){ echo ""; echo stripslashes($row["NOTES"]); echo ""; } echo ""; // list price echo ""; echo stripslashes($row["WINENUM"]); echo ""; // sale price echo ""; echo stripslashes($row["SALEPRICE"]); echo ""; ++$i; } echo " "; ++$i; } ?>