Re: [PHP] find a word in a string

2008-11-06 Thread Amisha_Sharma
Hi Strstr fuction of PHP is used to find a string in another string http://www.senpai-it.com/dedicated_servers.php Senpai IT Solutions Dedicated Server at low cost Richard Kurth-2 wrote: is the a php function to find a word in a string and report back that it was found -- PHP

Re: [PHP] basic php question...

2008-11-06 Thread Amisha_Sharma
Hi What do you want to do on the another page? you can also place a back link on that page to go back to previous page http://www.senpai-it.com/dedicated_servers.php Senpai IT Solutions Dedicated Server at low cost bruce-60 wrote: hi guys... i've got a button that i want to select,

Re: [PHP] Random number generator

2008-11-06 Thread Amisha_Sharma
Hi you can use PHP rand() function for selecting a random number between 1 to 100. http://www.senpai-it.com/dedicated_servers.php Senpai IT Solutions Dedicated Server at low cost WEISD wrote: On a php web page I want to generate a random number between say 1 and 10 and then use that

Re: [PHP] removing text from a string

2008-11-06 Thread Lupus Michaelis
Micah Gersten a écrit : Yep, with a regex, it's real easy (untested code): So easy you got two bugs : ?php $fileData = file_get_contents(text,txt); I hope you don't really do that in production code. It can be bogus with big files. $newFileData =

Re: [PHP] removing text from a string

2008-11-06 Thread Lupus Michaelis
Ashley Sheridan a écrit : Thats a lot of code when a couple of lines and a regex will do ;) Maybe because the use of the regex is pointless here. A bazooka to kill the fly ? :) -- Mickaël Wolff aka Lupus Michaelis http://lupusmic.org -- PHP General Mailing List (http://www.php.net/) To

Re: [PHP] basic php question...

2008-11-06 Thread Lupus Michaelis
Thodoris a écrit : Do these people really exist? I though that their extinction happened the same with the dinosaurs. Like Ashley said it, they are some specific situation where you can't. But, Javascript can become a secrity issue, and it must be deactivable. Some years ago, they was

Re: [PHP] basic php question...

2008-11-06 Thread Richard Heyes
* some proxy servers (e.g. at work) strip out some scripts How on earth do you use Gmail? :-) -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated November 1st) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] building an admin tree with varying node types

2008-11-06 Thread Richard Heyes
How are your groups linked with your users? Does every user has a GroupId in his record? The code is not specifically related to a user management system, but is something you can use to easily build such a system. Does this question has to do with building an html tree or it is about the

Re: [PHP] building an admin tree with varying node types

2008-11-06 Thread Rene Veerman
Thodoris wrote: How are your groups linked with your users? Does every user has a GroupId in his record? Does this question has to do with building an html tree or it is about the best database schema that helps to construct and retrieve a tree faster? My users-table is linked to the

Re: [PHP] building an admin tree with varying node types

2008-11-06 Thread Rene Veerman
Thodoris wrote: How are your groups linked with your users? Does every user has a GroupId in his record? Does this question has to do with building an html tree or it is about the best database schema that helps to construct and retrieve a tree faster? oh, and while searching i landed

Re: [PHP] removing text from a string

2008-11-06 Thread Thodoris
Thodoris wrote: Boyd, Todd M. wrote: -Original Message- From: Ashley Sheridan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 1:40 PM To: Adam Williams Cc: PHP General list Subject: Re: [PHP] removing text from a string On Tue, 2008-11-04 at 08:04 -0600, Adam

Re: [PHP] removing text from a string

2008-11-06 Thread Thodoris
Ashley Sheridan a écrit : Thats a lot of code when a couple of lines and a regex will do ;) Maybe because the use of the regex is pointless here. A bazooka to kill the fly ? :) I couldn't agree more. Not to mention that they are probably slower. PS Don't get me wrong I like perl and

Re: [PHP] ??????????? ??????? 648-67-61 ??? ?????? ? ???? ?????? ? ??????

2008-11-06 Thread Thodoris
On Wed, 2008-11-05 at 19:13 +0200, Thodoris wrote: Command unkown. Make sure you typed it right. Do you think that this cryptic number 648-67-61 has to do with the answer of all things? Like 42 for e.g.? My russian (or whatever this is) suck more then my English. That's a

Re: [PHP] building an admin tree with varying node types

2008-11-06 Thread Eric Butera
On Thu, Nov 6, 2008 at 5:08 AM, Rene Veerman [EMAIL PROTECTED] wrote: Thodoris wrote: How are your groups linked with your users? Does every user has a GroupId in his record? Does this question has to do with building an html tree or it is about the best database schema that helps to

Re: [PHP] basic php question... [compliance]

2008-11-06 Thread tedd
At 6:53 PM +0200 11/5/08, Thodoris wrote: Thank you oh mighty and good God that I don't live in America!! How do you manage all these strange things you guys ? Nothing strange about it -- it's just the evolution of technology. Things are improving for everyone. Certainly that does not mean

Re: [PHP] basic php question...

2008-11-06 Thread Thodoris
On Wed, 2008-11-05 at 18:48 +0200, Thodoris wrote: Richard Heyes a écrit : users who browse without Javascript enabled, Heretics! No, paranoid :D Do these people really exist? I though that their extinction happened the same with the dinosaurs.

Re: [PHP] take me off the list

2008-11-06 Thread tedd
At 11:25 AM -0500 11/5/08, Dan Joseph wrote: On Wed, Nov 5, 2008 at 11:18 AM, Robert Cummings [EMAIL PROTECTED]wrote: Isn't that redundant with the light him on fire option? With the light him on fire part he'll be warm for the rest of his life and then he won't bother anyone again :)

[PHP] Globals or Super Global Variables To Be Reused from For Loops

2008-11-06 Thread Alice Wei
Hi, I have a snippet of code as shown in the following: $message2=47406|Detroit; $stringChunk2= explode(|, $message2); if ($message2!=) { $count_chunk2= count($stringChunk2); $count_chunk_2= $count_chunk2-1; } for ($j=0; $j$count_chunk2; $j++) { $string3=

Re: [PHP] Random number generator

2008-11-06 Thread Daniel P. Brown
On Thu, Nov 6, 2008 at 3:52 AM, Amisha_Sharma [EMAIL PROTECTED] wrote: Hi you can use PHP rand() function for selecting a random number between 1 to 100. Amisha, Welcome to the list, but please don't top post. For a list of all the guidelines for the official PHP lists, including

Re: [PHP] Globals or Super Global Variables To Be Reused from For Loops

2008-11-06 Thread Bastien Koert
[snip] [/snip] Alice, The big problem here is that you are resetting the $string3 variable in the loop for ($j=0; $j$count_chunk2; $j++) { $string3= $stringChunk2[$j];// -- resetting the value if ($j $count_chunk_2) { $string2= OR ;

RE: 答复: 答复: [PHP]COOKIE or coding

2008-11-06 Thread Boyd, Todd M.
-Original Message- From: Chris [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 05, 2008 8:51 PM To: Zhao chunliang[chunliang.zhao] Cc: php-general@lists.php.net Subject: Re: 答复: 答复: [PHP]COOKIE or coding Zhao chunliang[chunliang.zhao] wrote: I'll use the string to decrypt,

RE: [PHP] Globals or Super Global Variables To Be Reused from For Loops

2008-11-06 Thread Alice Wei
Hi, Sorry, I cannot use that because I am supposed to turn the string into something that looks like regions.name LIKE '%47406' OR regions.name LIKE '%Detroit', which I had to fix $string3 variable to $string3=regions.name LIKE '% . $stringChunk2[$j] . '; The goal is that the

Re: [PHP] removing text from a string

2008-11-06 Thread Jim Lucas
Thodoris wrote: Thodoris wrote: Boyd, Todd M. wrote: -Original Message- From: Ashley Sheridan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 1:40 PM To: Adam Williams Cc: PHP General list Subject: Re: [PHP] removing text from a string On Tue, 2008-11-04

Re: [PHP] removing text from a string

2008-11-06 Thread Jim Lucas
Thodoris wrote: Ashley Sheridan a écrit : Thats a lot of code when a couple of lines and a regex will do ;) Maybe because the use of the regex is pointless here. A bazooka to kill the fly ? :) I couldn't agree more. Not to mention that they are probably slower. PS Don't get me

RE: [PHP] removing text from a string

2008-11-06 Thread Boyd, Todd M.
-Original Message- From: Jim Lucas [mailto:[EMAIL PROTECTED] Sent: Thursday, November 06, 2008 9:58 AM To: [EMAIL PROTECTED] Cc: php-general@lists.php.net Subject: Re: [PHP] removing text from a string Thodoris wrote: Ashley Sheridan a écrit : Thats a lot of code when a

Re: [PHP] Random number generator

2008-11-06 Thread Andrew Ballard
On Thu, Nov 6, 2008 at 10:53 AM, WEISD [EMAIL PROTECTED] wrote: Gary M. Josack [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Stephen wrote: On a php web page I want to generate a random number between say 1 and 10 and then use that number to reference a particular file in an

Re: [PHP] Globals or Super Global Variables To Be Reused from For Loops

2008-11-06 Thread Jim Lucas
Alice Wei wrote: Hi, Sorry, I cannot use that because I am supposed to turn the string into something that looks like Sounds like we are doing someones school work again. regions.name LIKE '%47406' OR regions.name LIKE '%Detroit', which I had to fix $string3 variable to

Re: [PHP] take me off the list

2008-11-06 Thread Dan Joseph
On Thu, Nov 6, 2008 at 9:17 AM, tedd [EMAIL PROTECTED] wrote: I've been trying to point that out in my signature for 3 years :) I'm glad someone finally realized it! That should give you an idea of how many people read sigs. I've seen a lot of cute ones over the years, but after the

Re: [PHP] removing text from a string

2008-11-06 Thread Richard Heyes
RegEx Fan Seriously...? -- Richard Heyes HTML5 Graphing for FF, Chrome, Opera and Safari: http://www.rgraph.org (Updated November 1st) -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Random number generator

2008-11-06 Thread WEISD
Gary M. Josack [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Stephen wrote: On a php web page I want to generate a random number between say 1 and 10 and then use that number to reference a particular file in an include tag. ?php include('GeneratedNumber.html'); ? Is there an

RE: [PHP] Random number generator

2008-11-06 Thread Jay Blanchard
[snip] ?php $number = rand(1, 10); include(footer$number.html); ? You can see it in action here at the bottom of the page there is a footer. Each footer is the same right now except I have numbered them for testing. As I refresh the page, I get footer10 almost always with an occasional 2 or

Re: [PHP] Random number generator

2008-11-06 Thread Stephen
On Thu, 11/6/08, WEISD [EMAIL PROTECTED] wrote: That is strange. I get pretty balanced results on this computer. ?php $histogram = array_fill(1, 10, 0); $iterations = 20; for ($i = 0; $i $iterations; ++$i) { ++$histogram[round(rand(1, 10))]; }

Re: [PHP] Random number generator

2008-11-06 Thread Micah Gersten
WEISD wrote: That is strange. I get pretty balanced results on this computer. ?php $histogram = array_fill(1, 10, 0); $iterations = 20; for ($i = 0; $i $iterations; ++$i) { ++$histogram[round(rand(1, 10))]; } print_r($histogram); ? Andrew Simple code, ?php $number =

Re: [PHP] Random number generator

2008-11-06 Thread WEISD
Computer functions to generate random numbers are not designed to do what their name suggests. Software testing requires repeatability, and this includes random number generation. Without knowing how PHP seeds the generator it is difficult to predict what it will do. I still think

Re: [PHP] Random number generator

2008-11-06 Thread WEISD
That is strange. I get pretty balanced results on this computer. ?php $histogram = array_fill(1, 10, 0); $iterations = 20; for ($i = 0; $i $iterations; ++$i) { ++$histogram[round(rand(1, 10))]; } print_r($histogram); ? Andrew Simple code, ?php $number = rand(1, 10);

Re: [PHP] Random number generator

2008-11-06 Thread Maciek Sokolewicz
WEISD wrote: Computer functions to generate random numbers are not designed to do what their name suggests. Software testing requires repeatability, and this includes random number generation. Without knowing how PHP seeds the generator it is difficult to predict what it will do. I

Re: [PHP] Random number generator

2008-11-06 Thread Jim Lucas
WEISD wrote: Computer functions to generate random numbers are not designed to do what their name suggests. Software testing requires repeatability, and this includes random number generation. Without knowing how PHP seeds the generator it is difficult to predict what it will do. I

Re: [PHP] Random number generator

2008-11-06 Thread tedd
At 10:30 AM -0600 11/6/08, WEISD wrote: You can see it in action here at the bottom of the page there is a footer. Each footer is the same right now except I have numbered them for testing. As I refresh the page, I get footer10 almost always with an occasional 2 or 4 here and there...

Re: [PHP] Random number generator

2008-11-06 Thread WEISD
http://www.weisd.com/store2/WINHD-9022.php Not me -- I get a normal distribution. Cheers, tedd Thanks Tedd, That is because it is using time now and not rand... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] removing text from a string

2008-11-06 Thread Boyd, Todd M.
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Richard Heyes Sent: Thursday, November 06, 2008 10:26 AM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] removing text from a string RegEx Fan Seriously...? Let's just say I

Re: [PHP] Random number generator

2008-11-06 Thread Micah Gersten
Stephen wrote: On Thu, 11/6/08, WEISD [EMAIL PROTECTED] wrote: That is strange. I get pretty balanced results on this computer. ?php $histogram = array_fill(1, 10, 0); $iterations = 20; for ($i = 0; $i $iterations; ++$i) { ++$histogram[round(rand(1, 10))]; }

Re: [PHP] Random number generator

2008-11-06 Thread WEISD
1. change the number to a string: $t = (string) time(); 2. chop off the last char of the string: $char = substr($t, -1); 3. you're done...: include footer$char.html; Time wins certainly produces better results, at least for what I am doing, than rand... Thanks all for your input...

RE: [PHP] Globals or Super Global Variables To Be Reused from For Loops

2008-11-06 Thread Alice Wei
Hi, Thanks for your tip, and I am surprised that this could be done so easily. Alice Date: Thu, 6 Nov 2008 08:11:48 -0800 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] CC: [EMAIL PROTECTED]; php-general@lists.php.net Subject: Re: [PHP] Globals or Super Global Variables To Be Reused

Re: [PHP] removing text from a string

2008-11-06 Thread Thodoris
Thodoris wrote: Thodoris wrote: Boyd, Todd M. wrote: -Original Message- From: Ashley Sheridan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 1:40 PM To: Adam Williams Cc: PHP General list Subject: Re: [PHP] removing text from a string On

Re: [PHP] removing text from a string

2008-11-06 Thread Thodoris
Thodoris wrote: Ashley Sheridan a écrit : Thats a lot of code when a couple of lines and a regex will do ;) Maybe because the use of the regex is pointless here. A bazooka to kill the fly ? :) I couldn't agree more. Not to mention that they are probably slower.

[PHP] PHP and Cyrus problem

2008-11-06 Thread Emerson Virti
Hello, My company have almost ten thousand mailboxes on Cyrus Imap. We use Thunderbird for IMAP client and PHP for webmail. We have a problem in a very few mailboxes. This boxes don't have any visible problem with Thunderbird access but in PHP, the (webmail) access provide a segmentation failed.

Re: [PHP] basic php question... [compliance]

2008-11-06 Thread Thodoris
At 6:53 PM +0200 11/5/08, Thodoris wrote: Thank you oh mighty and good God that I don't live in America!! How do you manage all these strange things you guys ? Nothing strange about it -- it's just the evolution of technology. Evolution?? Really ? Disabling js? Things are improving for

Re: [PHP] Random number generator

2008-11-06 Thread tedd
At 11:35 AM -0600 11/6/08, WEISD wrote: http://www.weisd.com/store2/WINHD-9022.php Not me -- I get a normal distribution. Cheers, tedd Thanks Tedd, That is because it is using time now and not rand... Just as point of notice. When I ask a question and provide a url, I keep the url

[PHP] Printing Web Page

2008-11-06 Thread Patrick Moloney
I'd like to enable my users to print individual web pages from their browser. If they simply select the browser print button they don't get all the text that is displayed in a scrolling text area. The web page is static html and css, in a php file. -- PHP General Mailing List

[PHP] Infinite Loop Issue

2008-11-06 Thread Kyle Terry
I believe I'm doing everything right here. It just seems like it doesn't end. The browser just keeps trying to load the page forever... function displayAll(){ global $db; $sql = SELECT release_id, description, date(release_date) date, issues, priority FROM release_data; $all =

Re: [PHP] removing text from a string

2008-11-06 Thread Stut
On 6 Nov 2008, at 18:33, Thodoris wrote: This : ltrim($line, '0123456789 .'); does remove all those characters doesn't it (as the OP asked and Richard suggested on a previous thread). Without calling it more than once as far as I tested. That was my point on the first place and sorry if

RE: [PHP] Printing Web Page

2008-11-06 Thread Jay Blanchard
[snip] I'd like to enable my users to print individual web pages from their browser. If they simply select the browser print button they don't get all the text that is displayed in a scrolling text area. The web page is static html and css, in a php file. [/snip] There are some very good

Re: [PHP] removing text from a string

2008-11-06 Thread Jim Lucas
Thodoris wrote: Thodoris wrote: Thodoris wrote: Boyd, Todd M. wrote: -Original Message- From: Ashley Sheridan [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 04, 2008 1:40 PM To: Adam Williams Cc: PHP General list Subject: Re: [PHP] removing

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Nathan Nobbe
On Thu, Nov 6, 2008 at 1:34 PM, Kyle Terry [EMAIL PROTECTED] wrote: I believe I'm doing everything right here. It just seems like it doesn't end. The browser just keeps trying to load the page forever... function displayAll(){ global $db; $sql = SELECT release_id, description,

Re: [PHP] Printing Web Page

2008-11-06 Thread Frank Arensmeier
6 nov 2008 kl. 21.21 skrev Patrick Moloney: I'd like to enable my users to print individual web pages from their browser. If they simply select the browser print button they don't get all the text that is displayed in a scrolling text area. The web page is static html and css, in a php

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Chris
Kyle Terry wrote: I believe I'm doing everything right here. It just seems like it doesn't end. The browser just keeps trying to load the page forever... function displayAll(){ global $db; $sql = SELECT release_id, description, date(release_date) date, issues, priority FROM

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Daniel Brown
On Thu, Nov 6, 2008 at 4:34 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: w/e $all is, im guessing $all-fetch() is never returning false (or a value which can be type juggled to a boolean false equiv). if youre code is getting beyond the while loop, then there could be something wrong w/

[PHP] I have a problem with dynamicly updating files...

2008-11-06 Thread satinder singh
I got a lot through a tutorial, but problem is when i tried to insert, problem occured using following code: $query = INSERT INTO contacts VALUES ('','$first','$last','$phone','$mobile','$fax','$email','$web'); mysql_query($query); But when i used a code provided by my server for same purpose

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Kyle Terry
Positive, It's the only function being called in the test script. On Thu, Nov 6, 2008 at 1:40 PM, Daniel Brown [EMAIL PROTECTED] wrote: On Thu, Nov 6, 2008 at 4:34 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: w/e $all is, im guessing $all-fetch() is never returning false (or a value which

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Nathan Nobbe
On Thu, Nov 6, 2008 at 2:49 PM, Kyle Terry [EMAIL PROTECTED] wrote: Positive, It's the only function being called in the test script. so is the code making it past the while w/ the $all-fetch() condition ? it might be helpful to comment-out the body of said while loop and see if script

Re: [PHP] basic php question...

2008-11-06 Thread Ashley Sheridan
On Thu, 2008-11-06 at 14:28 +0200, Thodoris wrote: On Wed, 2008-11-05 at 18:48 +0200, Thodoris wrote: Richard Heyes a écrit : users who browse without Javascript enabled, Heretics! No, paranoid :D Do

Re: [PHP] Printing Web Page

2008-11-06 Thread Ashley Sheridan
On Thu, 2008-11-06 at 22:35 +0100, Frank Arensmeier wrote: 6 nov 2008 kl. 21.21 skrev Patrick Moloney: I'd like to enable my users to print individual web pages from their browser. If they simply select the browser print button they don't get all the text that is displayed in a

Re: [PHP] I have a problem with dynamicly updating files...

2008-11-06 Thread Wolf
satinder singh [EMAIL PROTECTED] wrote: I got a lot through a tutorial, but problem is when i tried to insert, problem occured using following code: $query = INSERT INTO contacts VALUES ('','$first','$last','$phone','$mobile','$fax','$email','$web'); mysql_query($query); !-- SNIP --

Re: [PHP] I have a problem with dynamicly updating files...

2008-11-06 Thread Ashley Sheridan
On Fri, 2008-11-07 at 03:18 +0530, satinder singh wrote: I got a lot through a tutorial, but problem is when i tried to insert, problem occured using following code: $query = INSERT INTO contacts VALUES ('','$first','$last','$phone','$mobile','$fax','$email','$web'); mysql_query($query);

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Nathan Nobbe
On Thu, Nov 6, 2008 at 3:01 PM, Kyle Terry [EMAIL PROTECTED] wrote: looks like its $all-fetch(); The query runs fine in MySQL... please keep responses on-list for the benefit of others. what type of class is $all an instance of, and what causes the fetch() function to return false (or

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Kyle Terry
On Thu, Nov 6, 2008 at 2:47 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Thu, Nov 6, 2008 at 3:01 PM, Kyle Terry [EMAIL PROTECTED] wrote: looks like its $all-fetch(); The query runs fine in MySQL... please keep responses on-list for the benefit of others. what type of class is $all an

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Daniel P. Brown
On Thu, Nov 6, 2008 at 5:51 PM, Kyle Terry [EMAIL PROTECTED] wrote: Sorry, I was actually having a conversation about that with Daniel. It is an instance of the mysqli class. Yeah, Nathan, keep it down while the grown-ups are talking. -- /Daniel P. Brown http://www.parasane.net/ [EMAIL

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Chris
Kyle Terry wrote: I believe I'm doing everything right here. It just seems like it doesn't end. The browser just keeps trying to load the page forever... function displayAll(){ global $db; $sql = SELECT release_id, description, date(release_date) date, issues, priority FROM

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Nathan Nobbe
On Thu, Nov 6, 2008 at 3:54 PM, Daniel P. Brown [EMAIL PROTECTED]wrote: On Thu, Nov 6, 2008 at 5:51 PM, Kyle Terry [EMAIL PROTECTED] wrote: Sorry, I was actually having a conversation about that with Daniel. It is an instance of the mysqli class. Yeah, Nathan, keep it down while the

Re[2]: [PHP] Invalid byte sequence for encoding UTF-8

2008-11-06 Thread ANR Daemon
Greetings, paragasu. In reply to Your message dated Friday, October 31, 2008, 12:39:14, i am using php with postgresql. when i submit post query to the server. i have the pg_exec error snip Warning: pg_query() [function.pg-query]: Query failed: ERROR: invalid byte sequence for encoding UTF8:

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Andrew Ballard
On Thu, Nov 6, 2008 at 5:56 PM, Chris [EMAIL PROTECTED] wrote: Kyle Terry wrote: I believe I'm doing everything right here. It just seems like it doesn't end. The browser just keeps trying to load the page forever... function displayAll(){ global $db; $sql = SELECT release_id,

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Eric Butera
On Thu, Nov 6, 2008 at 5:57 PM, Nathan Nobbe [EMAIL PROTECTED] wrote: On Thu, Nov 6, 2008 at 3:54 PM, Daniel P. Brown [EMAIL PROTECTED]wrote: On Thu, Nov 6, 2008 at 5:51 PM, Kyle Terry [EMAIL PROTECTED] wrote: Sorry, I was actually having a conversation about that with Daniel. It is an

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Chris
To get to that point, you are doing a loop of size X where X = the row number being processed. ie row 2 is doing a foreach over 2 entries. row 15 is doing a foreach over 15 entries. row 90 is doing a foreach over 90 entries. That's not QUITE right. The value of $issues will always be set to

Re: [PHP] Infinite Loop Issue

2008-11-06 Thread Jim Lucas
Kyle Terry wrote: I believe I'm doing everything right here. It just seems like it doesn't end. The browser just keeps trying to load the page forever... function displayAll(){ global $db; What the heck is in $db? Which SQL class(es) are you using for your DB handler? $sql =

[PHP] Re: Infinite Loop Issue

2008-11-06 Thread Lupus Michaelis
Kyle Terry a écrit : I believe I'm doing everything right here. It just seems like it doesn't end. The browser just keeps trying to load the page forever... If the problem doesn't seem to be there, you could see the wrong code snipset :D Did check out your error log from PHP, from