Re: [PHP] Re: echo?

2011-03-22 Thread Paul M Foster
On Tue, Mar 22, 2011 at 10:50:54PM -0400, Jim Giner wrote: > Yes - it is J and I. I tried using $i+1 in the echo originally but it > wouldn't run. That's why I created $j. Yes, the substitution creates a syntax error unless surrounded by parentheses or the like. > And just what is wrong with

Re: [PHP] Re: echo?

2011-03-22 Thread Jim Giner
Yes - it is J and I. I tried using $i+1 in the echo originally but it wouldn't run. That's why I created $j. And just what is wrong with the old cr/lf sequence? How would you have done it? What do you mean 'this alone .'? "Tamara Temple" wrote in message news:521bdb9d-adbf-45d7-b759-acd3

Re: [PHP] Re: echo?

2011-03-22 Thread Tamara Temple
On Mar 22, 2011, at 8:42 PM, Jim Giner wrote: ok - here's the code in question. $q = 'select * from director_records '; $qrslt = mysql_query($q); $rows = mysql_num_rows($qrslt); for ($i=0; $i<$rows; $i++) { $j = $i+1; Am i reading this correctly: the first variable is j (jay) the second

[PHP] Re: echo?

2011-03-22 Thread Jim Giner
ok - here's the code in question. $q = 'select * from director_records '; $qrslt = mysql_query($q); $rows = mysql_num_rows($qrslt); for ($i=0; $i<$rows; $i++) { $j = $i+1; $row = mysql_fetch_array($qrslt); echo $j.'-'.$row['userid']; if ($row['user_priv']<> "") echo ' ('

[PHP] Re: echo?

2011-03-22 Thread Al
On 3/22/2011 6:22 PM, Jim Giner wrote: Kinda new to this, but I've been puttering/writing for about 3 weeks now and have some good working screens up. Ran into something new while I was debuggina script today. Tried to echo the $i value within a for loop as part of the list of items I was bui

Re: [PHP] echo?

2011-03-22 Thread David Harkness
Are you sure? $ php -a php > for ($i = 0; $i < 10; $i++) { echo $i . ' '; } 0 1 2 3 4 5 6 7 8 9 David

Re: [PHP] echo?

2011-03-22 Thread Robert Cummings
On 11-03-22 06:22 PM, Jim Giner wrote: Kinda new to this, but I've been puttering/writing for about 3 weeks now and have some good working screens up. Ran into something new while I was debuggina script today. Tried to echo the $i value within a for loop as part of the list of items I was buil

Re: [PHP] echo?

2011-03-22 Thread Daniel Brown
On Tue, Mar 22, 2011 at 18:22, Jim Giner wrote: [snip!] > > for ($i=0;$i<$rows;$i++) >    echo $i.' '.$row['itemname']; > > I expected to see : > > 1 item1 > 2 item2 > ... > ... > > but instead I got > > 1 item1 > f item2 > > Yes - an 'f' and not a 2. > > Tried it some more with this: > > for ($i=

[PHP] echo?

2011-03-22 Thread Jim Giner
Kinda new to this, but I've been puttering/writing for about 3 weeks now and have some good working screens up. Ran into something new while I was debuggina script today. Tried to echo the $i value within a for loop as part of the list of items I was building Something like for ($i=0;$i<$rows

Re: [PHP] SSL issues

2011-03-22 Thread Bostjan Skufca
I just remembered, I had "unrelated" issue yesterday with php 5.3.6. It is used as standalone socket server with SSL connections and it suddenly stopped working, server was receiving gibberish instead of XML requests. I nailed it down to stream_set_blocking() which was set to false for various daem

Re: [PHP] SSL issues

2011-03-22 Thread Bostjan Skufca
This works, but SSL-enabled socket connection does not. Will craft a short script ASAP. b. On 22 March 2011 11:37, Richard Quadling wrote: > On 22 March 2011 01:21, Bostjan Skufca wrote: >> Hi all, >> >> is anyone else experiencing SSL connectivity issues with PHP 5.3(.5|6)? >> PHP 5.2.17 comp

Re: [PHP] SSL issues

2011-03-22 Thread Richard Quadling
On 22 March 2011 01:21, Bostjan Skufca wrote: > Hi all, > > is anyone else experiencing SSL connectivity issues with PHP 5.3(.5|6)? > PHP 5.2.17 compiled identically on the same system with the same > config file connects to remote SSL-enabled host just fine, whereas PHP > 5.3 (only tried .5 and .