2011/3/23 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
On Mar 22, 2011, at 9:50 PM, 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.
Interesting it wouldn't run.. perhaps that's a place to investigate?
And just what is wrong with the old cr/lf sequence? How would you
Jim Giner wrote:
> I am outputting to a on an html page. A doesn't work, nor
> does \n, hence the
. Of course, if I don't need the & then I've
> just saved two keystrokes. :) Also - I do believe I tried ($i+1) and
> that didn't work either.
>
> "Paul M Foster" wrote in message
> news:201
On Wed, Mar 23, 2011 at 07:46:03AM +, Geoff Lane wrote:
> Hi Jim,
>
> On Wednesday, March 23, 2011, 1:42:18 AM, you 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<$
Thanks for the pointer. Had not run across that tidbit before.
"Stuart Dallas" wrote in message
news:b43dfd4fa2ac4489aaf538d1bf7a8...@3ft9.com...
> http://php.net/manual/en/language.types.string.php
>
> -Stuart
>
> --
> Stuart Dallas
> 3ft9 Ltd
> http://3ft9.com/
>
> On Wednesday, 23 March 2011
http://php.net/manual/en/language.types.string.php
-Stuart
--
Stuart Dallas
3ft9 Ltd
http://3ft9.com/
On Wednesday, 23 March 2011 at 12:39, Jim Giner wrote:
> Very Interesting - '\n' doesn't work, but "\n" does work.
> "Steve Staples" wrote in message
> news:1300883645.5100.973.camel@webdev
Very Interesting - '\n' doesn't work, but "\n" does work.
"Steve Staples" wrote in message
news:1300883645.5100.973.camel@webdev01...
> On Wed, 2011-03-23 at 08:28 -0400, Jim Giner wrote:
>> I am outputting to a on an html page. A doesn't work,
>> nor
>> does \n, hence the
. Of course, if
it was as complete as need be to demonstrate my dilemma, as Richard has
discovered above
"Frank Arensmeier" wrote in message
news:7cfb015a-c530-4712-9ebc-fbdf5b0ed...@gmail.com...
23 mar 2011 kl. 02.42 skrev Jim Giner:
> ok - here's the code in question.
> $q = 'select * from director_records
not the concern in this posting
"Richard Quadling" wrote in message
news:aanlktindqu7bzeamtcwh6y9f3m9yjxqpt-ime9ysh...@mail.gmail.com...
On 23 March 2011 07:46, Geoff Lane wrote:
> Hi Jim,
>
> On Wednesday, March 23, 2011, 1:42:18 AM, you wrote:
>
>> ok - here's the code in question.
>> $q = 'se
On Wed, 2011-03-23 at 08:28 -0400, Jim Giner wrote:
> I am outputting to a on an html page. A doesn't work, nor
> does \n, hence the
. Of course, if I don't need the & then I've
> just saved two keystrokes. :) Also - I do believe I tried ($i+1) and that
> didn't work either.
>
> "Paul M
I am outputting to a on an html page. A doesn't work, nor
does \n, hence the
. Of course, if I don't need the & then I've
just saved two keystrokes. :) Also - I do believe I tried ($i+1) and that
didn't work either.
"Paul M Foster" wrote in message
news:20110323034621.go1...@quillandm
On 23 March 2011 07:46, Geoff Lane wrote:
> Hi Jim,
>
> On Wednesday, March 23, 2011, 1:42:18 AM, you 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++)
>> {
>>
Hi
after of the for, u can use
it shoulds back the class of variable, by example "its is string" "its is
int" etc
for ($i=0;$i<$rows;$i++)
echo $i.' '.$row['itemname'];
echo gettype($i);
Can be that you must define before the class of this variable, because, the
system is thinking this i
23 mar 2011 kl. 02.42 skrev 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['user
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
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
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
You could use the PHP Compiler: http://phpcompiler.org/ and do a
preprocessor as I did: http://www.satyam.com.ar/pht/.
PHC is capable of compiling a PHP source and return a modified PHP source.
It is easy to make a plugin for any such modifications, there is a class
which gets instantiated aft
On 12/18/06, Fahad Pervaiz <[EMAIL PROTECTED]> wrote:
I have written a framework for internationalization. Now i have incoorperate
it into and existing system that is huge and it will take alot of time to
change ECHO to a function call, so i want to override its implementation so
that i can use
You could try to manipulate what the echo's output by ob_start(), etc.
Or maybe you could change the standard output?
On 12/18/06, Fahad Pervaiz <[EMAIL PROTECTED]> wrote:
I have written a framework for internationalization. Now i have incoorperate
it into and existing system that is huge and it
Yeah, you can use foreach.
But *may be* you just find sth called array_keys().
Best regards,
Shiqi Yang
-Original Message-
From: Joe Harman [mailto:[EMAIL PROTECTED]
Sent: Thursday, July 14, 2005 4:45 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: Echo array string index
Hey Matt,
you can print out the contents of your array by using print_r($arr)
but more useful is using this
foreach ($arr as $key => $value)
{
echo "Key : ".$key." Value : ".$value;
}
Adios
Joe
On 7/13/05, Adam Hubscher <[EMAIL PROTECTED]> wrote:
>
> Matt Darby wrote:
> > I have an array s
* Thus wrote tkwright ([EMAIL PROTECTED]):
>
>
> Just warming the timer
> This Is HTML
> ###
> # Total Time: 0.000114 seconds #
> # Start Time: 1069732578.575586 seconds #
> # Ending Time: 1069732578.575700 seconds #
>
Actually, that should make no difference... you don't need a ; if it's
the last instruction before the close of PHP.
Try or
Justin
On Saturday, October 11, 2003, at 09:29 AM, Al wrote:
Put a ";" [no quotes] after such as: echo $PHP_SELF;
Jeff McKeon wrote:
I've just published a new websi
Unless you do an extract($_POST); in a main include somewhere before your
form.
For $PHP_SELF just do $PHP_SELF = $_SERVER['PHP_SELF']; or to get all of the
$_SERVER vars, do extract($_SERVER);
-Shawn
"Jeff McKeon" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
So you're saying I h
So you're saying I had register_globals set to ON on my dev server!?
CRAP!!! I thought I was working with it off!
Now I have to redevelop it all and change all my $variables from forms
to $_POST['variable']? Even when they post to the same page with
"action=''"??
Jeff
> -Original Messag
Newbie here. Works fine for me too.
-Original Message-
From: Marco Tabini [mailto:marcot@;tabini.ca]
Sent: Tuesday, November 12, 2002 5:31 AM
To: Aaron Gould
Cc: Craig Buxton;
Subject: Re: [PHP] re: echo w/ here document
Works fine on my system. As Aaron said, make sure there are no
Works fine on my system. As Aaron said, make sure there are no spaces
around ENDOFECHO;
Marco
--
php|architect - The magazine for PHP Professionals
The first monthly worldwide magazine dedicated to PHP programmers
Check us out on the web at http://www.phparch.com
On Tue, 2002-11-1
Looks ok to me. Try making sure that all white space is removed from after
the "echo <<
To: <[EMAIL PROTECTED]>
Sent: Tuesday, November 12, 2002 5:32 AM
Subject: [PHP] re: echo w/ here document
> I'm still having a problem with including a here document. Trying this
> code:
>
> echo <<
>
> he
gt;
Cc: <[EMAIL PROTECTED]>
Sent: Sunday, September 16, 2001 9:32 PM
Subject: Re: [PHP] Re: echo/printing html within a function - best method
> I try to avoid having my functions generate HTML. But yes, when they do I
> use the same approach.
--
PHP General Mailing List (http://
> > > How do you echo your html, do you put the html in your functions and
> > > escape the double quotes? There is some extra load there echoing all the
> > > html?
> >
> > echo HTML? I do this:
> >
> >
> > HTML stuff
> >
> >
> > I drop out of PHP mode to display raw HTML. If I have a l
Steve Brett wrote:
>
> don't echo and printf do different jobs ?
>
> as i understand it echo will dump anything to screen, fprint will accept
> formatted text args like "you owe me %d dollars",$owed_amount) or something
> like that.
>
> i kind of use print by itself (harking back to the old day
print, echo, and printf are all available to help different coders code in
their own style. So if you're used to just using echo in "shell", or print
in perl/basic or perhaps printf, in c/c++/java/asp, there you go. Make a
language easy to get stuff out of, and you can have a really quick user
bas
33 matches
Mail list logo