[snip]
Of course getting an indexed value into an associative array seems a bit
odd to me... maybe Jonas could shed some light on why he would go this
route...
[/snip]
Exactly
[snip]
To get a value from position 2 in an array you use $arrayName[1] (all
array elements start numbering at 0,
[snip]
Seem like your missunderstanding me. I'm not using an orignal array. I'm
using an map-array.
$array = ('element' = 'value');
[/snip]
It is called an associative array, a value is associated with a key.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
Lasso can do the following, can PHP?
?LassoScript
Variable:
'Colors'=(Map:'red'='#ff','green'='#00ff00','blue'='#ff');
Loop: $Colors-Size;
Output: 'br' + $Colors-(Get: Loop_Count),-EncodeNone;
/Loop;
?
This outputs;
ff
00ff00
ff
I'm new at PHP but
[snip]
$colors =
array('white'='#ff','black'='#00','blue'='#ff');
foreach($colors AS $key = $value){
echo $value . br /\n;
}
But I don't get anything out of this code. Why? Doesn't echo anything?
[/snip]
Seriously? Works fine here.
--
PHP General Mailing List
On 04 May 2006 13:52, John Wells wrote:
On 5/4/06, Brad Bonkoski [EMAIL PROTECTED] wrote:
Will this also work with an associative array? If this is what he
is talking about, I tried it and it does not work
I think you're correct. This is because PHP arrays are a mash-up
(as
On 5/4/06, Ford, Mike [EMAIL PROTECTED] wrote:
They're not even that. They're pure associative arrays, or maps -- it's just
that integer keys are treated somewhat specially so that an array with *only*
integer keys will look like a traditional array.
True true, thanks for making it crystal
On Thu, May 4, 2006 7:24 am, Jonas Rosling wrote:
Is there any way to call for an element value in an array by the
position?
Like position 2 in the array and not the key name.
You DEFINITELY need to re-read the Array section of the manual.
Because you either didn't read it, or didn't
On Thu, May 4, 2006 9:09 am, John Wells wrote:
On 5/4/06, Ford, Mike [EMAIL PROTECTED] wrote:
They're not even that. They're pure associative arrays, or maps --
it's just that integer keys are treated somewhat specially so that
an array with *only* integer keys will look like a traditional
Just wrap it, like Example 1 of the manual shows
function my_echo($array, $key) {
echo $array[$key];
}
array_walk_recursive($array, 'my_echo');
Date: Fri, 7 Apr 2006 15:42:40 +0100
From: Chris Boget [EMAIL PROTECTED]
To: php-general@lists.php.net
Subject: [PHP] echo, print and
Khristian Hamilton-Bailey wrote:
Hi,
I currently use the date function as follows:
?php
$day= date(l);
?
so I can then use this to call records from a database where todays day
matches that of a record, however I would also like to call records for
tomorrow, is there a way in which I could
John Nichel wrote:
Khristian Hamilton-Bailey wrote:
Hi,
I currently use the date function as follows:
?php
$day= date(l);
?
so I can then use this to call records from a database where todays day
matches that of a record, however I would also like to call records for
tomorrow, is there a
Try nbsp;
On 19/11/05, Alex Alfonso [EMAIL PROTECTED] wrote:
Can you please tell me how to make a space in php. I know that br is a
new line and p is a new paragraph. But I just can't figure out what an
earth a space is. Eg
?php
echo Television viewers who turned to;
echo I need a space
Or
On 19/11/05, Raz [EMAIL PROTECTED] wrote:
Try nbsp;
On 19/11/05, Alex Alfonso [EMAIL PROTECTED] wrote:
Can you please tell me how to make a space in php. I know that br is a
new line and p is a new paragraph. But I just can't figure out what an
earth a space is. Eg
?php
echo
On Sat, 2005-11-19 at 03:35, Raz wrote:
Or
Oh no, don't interpolate your space... that's just plain wasteful of
cycles.
*lol*
Rob.
--
..
| InterJinn Application Framework - http://www.interjinn.com |
Jeez! You'd hate to work on a project with me then! All those cycles
I'd waste! Har har ;)
On 19/11/05, Robert Cummings [EMAIL PROTECTED] wrote:
On Sat, 2005-11-19 at 03:35, Raz wrote:
Or
Oh no, don't interpolate your space... that's just plain wasteful of
cycles.
*lol*
Rob.
--
Alex Alfonso wrote:
Can you please tell me how to make a space in php. I know that br
is a new line and p is a new paragraph. But I just can't figure
out what an earth a space is. Eg
?php
echo Television viewers who turned to;
echo I need a space here;
echo $_POST['word1'];
?
Can you please
On Sat, 2005-11-19 at 03:55, Raz wrote:
Jeez! You'd hate to work on a project with me then! All those cycles
I'd waste! Har har ;)
I don't think it really matters these days anyways :) I imagine the
compile caches optimize strings... but I could be wrong.
Cheers,
Rob.
--
Try this:
?php
echo Television viewers who turned to . $_POST['word1'];
?
--
Anas Mughal
On 11/19/05, Alex Alfonso [EMAIL PROTECTED] wrote:
Can you please tell me how to make a space in php. I know that br is a
new line and p is a new paragraph. But I just can't figure out what an
Matt Darby wrote:
I have an array setup as such: *$arr['generated text']='generated number';*
What would be the best way to echo the key in a loop?
Seems pretty easy but I've never attempted...
Thanks all!
Matt Darby
Unless I didnt understood you.. you can easily use foreach() for that.
If
Brent Clements wrote:
I have the following string variable
$string = 'test.php?id=' . $id;
but when I echo out the string it looks like this
test.php?
id=#
### is the $id variable value btw.
How do I make the ? part of the string instead of php evaluating that
question
Christopher Weaver wrote:
I can't get this code, pasted from the documentation, to work properly.
The
new lines don't occur where they should.
You may also want to check out:
http://php.net/nl2br
if you were trying to get newlines in your HTML.
Another option is to consider the HTML PRE tag,
Christopher Weaver mailto:[EMAIL PROTECTED]
on Monday, November 29, 2004 6:20 PM said:
I can't get this code, pasted from the documentation, to work
properly. The new lines don't occur where they should.
You are probably expecting the wrong thing. The newlines only appear
in the source of
Christopher Weaver wrote:
I can't get this code, pasted from the documentation, to work properly. The
new lines don't occur where they should.
This is because the output is being interpreted by a web browser which
expects HTML. You need to put in br / every where you want a new line.
-- David
How are you running the file? If it's in a web browser, you won't see the
new lines since you'd need br or p tabs instead of \n's.
So when you say that it's not working properly, can you at least say how it
*is* working and how that's different from what you expect?
-M
-Original
Brent Clements mailto:[EMAIL PROTECTED]
on Tuesday, November 30, 2004 3:55 PM said:
I have the following string variable
$string = 'test.php?id=' . $id;
but when I echo out the string it looks like this
test.php?
id=#
How do I make the ? part of the string instead of php
Karl-Heinz Schulz wrote:
I'm trying to use html_decode with the echo function but failed so far.
? echo mysql_result($product, 0,1) ?
What would be the correct syntax?
Huh? I don't see html_decode anywhere and the function is
html_entity_decode(), anyhow.
If you want to run the above through
I'm trying to use html_decode with the echo function but failed so far.
? echo mysql_result($product, 0,1) ?
What would be the correct syntax?
TIA
You should read up on how to use mysql_result properly. Read through the
user comments for tips.
Matthew Sims wrote:
I'm trying to use html_decode with the echo function but failed so far.
? echo mysql_result($product, 0,1) ?
What would be the correct syntax?
TIA
You should read up on how to use mysql_result properly. Read through the
user comments for tips.
Matthew Sims wrote:
I'm trying to use html_decode with the echo function but failed so far.
? echo mysql_result($product, 0,1) ?
What would be the correct syntax?
TIA
You should read up on how to use mysql_result properly. Read through the
user comments for tips.
Eugene, et al --
...and then Eugene Lee said...
%
% p class=tonue-in-cheek
%
% Also, the letter 'e' is smaller than 'p', so ASCII-based function
% lookups will be faster as well.
Most of these speed increases can't be noticed in a small script, where
the end is within a few lines, but echo()
David T-G wrote:
Eugene, et al --
...and then Eugene Lee said...
%
% p class=tonue-in-cheek
%
% Also, the letter 'e' is smaller than 'p', so ASCII-based
function % lookups will be faster as well.
Most of these speed increases can't be noticed in a small
script, where the end is within
Wouter van Vliet mailto:[EMAIL PROTECTED]
on Friday, November 21, 2003 10:55 AM said:
Point is, which of the inline printing style is preferred by you
guyes. I tend to use ?=$Var? a lot, since it reads easier but get
into struggles with myself when I do that multiple times in a row.
Chris W. Parker wrote:
Wouter van Vliet mailto:[EMAIL PROTECTED]
on Friday, November 21, 2003 10:55 AM said:
Point is, which of the inline printing style is preferred by you
guyes. I tend to use ?=$Var? a lot, since it reads easier but get
into struggles with myself when I do that
On Fri, 21 Nov 2003, Wouter van Vliet wrote:
Point is, which of the inline printing style is preferred by you guyes. I
tend to use ?=$Var? a lot, since it reads easier but get into struggles
with myself when I do that multiple times in a row.
Ultimately I think you'd want to be doing very
--- Chris W. Parker [EMAIL PROTECTED] wrote:
I also prefer ?= $variable ? to ?php echo $variable; ? except
that for the sake of cross-system compatibility* I now choose to do
?php echo $variable; ?.
I think explicitly using echo is much more readable. While it may be
obvious to many what ?=
Kelly Hallman wrote:
On Fri, 21 Nov 2003, Wouter van Vliet wrote:
Point is, which of the inline printing style is preferred by you
guyes. I tend to use ?=$Var? a lot, since it reads easier but get
into struggles with myself when I do that multiple times in a row.
Ultimately I think you'd
On Fri, Nov 21, 2003 at 07:55:05PM +0100, Wouter van Vliet wrote:
:
: (.. long bunch of HTML ..)
: Jay asked ?=$Question?, then Tom said ? echo $Answer; ?. ?php
I don't like this because it doesn't protect your content from being
misinterpreted. It should be more like:
Jay asked ?php
Rasmus Lerdorf
There is a difference between the two, but speed-wise it
should be irrelevant which one you use. print() behaves
like a function in that you can do:
$ret = print Hello World;
And $ret will be 1
That means that print can be used as part of a more complex
expression where echo
* Thus wrote Wouter van Vliet ([EMAIL PROTECTED]):
Point is, which of the inline printing style is preferred by you guyes. I
tend to use ?=$Var? a lot, since it reads easier but get into struggles
with myself when I do that multiple times in a row.
1. Turn off short_open_tags
2. Turn off
On Sat, 2003-11-22 at 00:13, Curt Zirzow wrote:
* Thus wrote Wouter van Vliet ([EMAIL PROTECTED]):
Point is, which of the inline printing style is preferred by you guyes. I
tend to use ?=$Var? a lot, since it reads easier but get into struggles
with myself when I do that multiple times
Hi,
Friday, November 21, 2003, 12:37:50 AM, you wrote:
JF when should i use echo ' '; vs. print ' ';
JF
JF Jay Fitzgerald, Design Director
JF - Certified Professional Webmaster (CPW-A)
JF - Certified Professional Web Designer (CPWDS-A)
JF -
Jay Fitzgerald wrote:
when should i use echo ' '; vs. print ' ';
You should always use echo. It'll make a significant performance
increase in your scripts as it's only four letters instead of five.
--
---John Holmes...
Amazon Wishlist: www.amazon.com/o/registry/3BEXC84AB3A5E/
php|architect:
when should i use echo ' '; vs. print ' ';
Here's a link listed in the manual at
http://www.php.net/manual/en/function.print.php
http://www.faqts.com/knowledge_base/view.phtml/aid/1/fid/40
Kirk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
Tom Rogers wrote:
Hi,
Friday, November 21, 2003, 12:37:50 AM, you wrote:
JF when should i use echo ' '; vs. print ' ';
JF
JF Jay Fitzgerald, Design Director
JF - Certified Professional Webmaster (CPW-A)
JF - Certified Professional Web Designer
On Thu, Nov 20, 2003 at 12:36:42PM -0500, John W. Holmes wrote:
:
: Jay Fitzgerald wrote:
:
: when should i use echo ' '; vs. print ' ';
:
: You should always use echo. It'll make a significant performance
: increase in your scripts as it's only four letters instead of five.
p
(Just FYI)
On Wed, 29 Oct 2003 23:03:55 +0100
Ryan A [EMAIL PROTECTED] wrote:
If I have said it once I have said it a thousand
times..MAC's are evil. Step away from it and leave the
darkness behind.come towards the light and thePC
...[snip]...
Too bad for you...
Just by reading
- Edwin - wrote:
Just by reading this - http://www.apple.com/macosx/ esp.
these last two sections:
* Solid as a rock
* Developer's dream
would give people reason to consider and even switch...
Mac OS X is fairly stable, I'll give you that. As for developer's
dream, that's a matter of
On Thu, 30 Oct 2003 02:47:47 -0500
Leif K-Brooks [EMAIL PROTECTED] wrote:
- Edwin - wrote:
Just by reading this - http://www.apple.com/macosx/ esp.
these last two sections:
* Solid as a rock
* Developer's dream
would give people reason to consider and even switch...
Mac OS X
The devil will always give you lots of reasons to convert you
Do not always take the smooth path, the rough path sometimes.. is the
right path.
:-D
Cheers,
-Ryan
Oh BTW - Macs are EVIL.
On Thu, 30 Oct 2003 02:47:47 -0500
Leif K-Brooks [EMAIL PROTECTED] wrote:
- Edwin - wrote:
- Edwin - mailto:[EMAIL PROTECTED]
on Wednesday, October 29, 2003 11:26 PM said:
[snip lots of nice things about mac osx]
Yes, I can do those and more on my Mac. And it doesn't even
crash on me even if I do many things at the same time. I
could run it for months!
Yeah but... it's a Mac.
Chris,
I seriously disagree with you, in my not so humble opinion OS X is
really great. I currently only have Linux installed, but i've just
ordered a PowerBook...
However, I don't see the point in discussing this topic any longer. You
won't change your opinion and Apple afficionados won't
Sorry to continue this, but I just have to know...
On Oct 30, 2003, at 6:32 PM, Chris W. Parker wrote:
But seriously folks... The reason I don't like Macs is not because they
don't perform well but it's because they have a retarded UI. It looks
like crap and it works like crap. They do some of
However, I don't see the point in discussing this topic any longer. You
won't change your opinion and Apple afficionados won't change their
opinion either. I would like to suggest that you try Linux, BSD or OS X
before you speak.
On the bright side, Linux, Windows, and Mac OS X all run PHP. And
On Wed, 29 Oct 2003 11:56:11 +1100, you wrote:
I have spent about an hour looking at this and have found I can't echo
anything with 16 characters or less! It can be over a single line or
multiple lines eg.
?php
echo(12345678);
echo(12345678);
?
-
but
?php
echo(12345678);
echo(123456789);
?
Payne Wrtote:
\n is what you are needing. \n means new line. So you want a new line
you have to do this
echo (abc\n);
echo (Elm Street\n);
echo (Anytown, NY 0 \n);
to get
abc
Elm Street
Anytown, NY 0
you can also use a printf then you can use html code to get the same br.
You
Payne wrote:
Payne Wrtote:
\n is what you are needing. \n means new line. So you want a new line
you have to do this
echo (abc\n);
echo (Elm Street\n);
echo (Anytown, NY 0 \n);
to get
abc
Elm Street
Anytown, NY 0
you can also use a printf then you can use html code to get the same
--- John Nichel [EMAIL PROTECTED] wrote:
Is this on Windoze or *nix? Sounds like some sort of buffering
issue...
Yes, it does.
what is 'output_buffering' set too in your ini?
This shouldn't matter either. I can't think of a reason why he would see the
behavior he describes. In fact, this
Chris Shiflett wrote:
--- John Nichel [EMAIL PROTECTED] wrote:
Is this on Windoze or *nix? Sounds like some sort of buffering
issue...
Yes, it does.
what is 'output_buffering' set too in your ini?
This shouldn't matter either. I can't think of a reason why he would see the
behavior he
G'day Adam, David, John etc
I have spent about an hour looking at this and have found I can't echo
anything with 16 characters or less!
I'm glad to report this is not a PHP issue. It turns out to be a Safari
problem with Mac OSX (Safari was updated with OSX 10.3).
All my PHP stuff is
If I have said it once I have said it a thousand times..MAC's are evil.
Step away from it and leave the darkness behind.come towards the light
and thePC
:-D
Cheers,
-Ryan
(P.S in case you hav'nt guesseda PC user)
G'day Adam, David, John etc
I have spent about an hour looking
--- Kim Kohen [EMAIL PROTECTED] wrote:
I'm glad to report this is not a PHP issue. It turns out to be a
Safari problem with Mac OSX (Safari was updated with OSX 10.3).
All my PHP stuff is working correctly in IE so it looks like
development will proceed there until Apple gets a fix.
I would
G'day Chris
I would be very interested in learning more about this issue. Would you happen
to be able to provide an example HTTP transaction that Safari mishandles?
If you use a 'proper' html file it works OK. If you simply create a text
file (with .html extension) with less than 16
On Thursday 30 October 2003 06:03, Ryan A wrote:
If I have said it once I have said it a thousand times..MAC's are evil.
Step away from it and leave the darkness behind.come towards the light
and thePC
:-D
Cheers,
-Ryan
(P.S in case you hav'nt guesseda PC user)
Define
On Thu, 30 Oct 2003 10:00:51 +1100, you wrote:
I would be very interested in learning more about this issue. Would you happen
to be able to provide an example HTTP transaction that Safari mishandles?
If you use a 'proper' html file it works OK. If you simply create a text
file (with .html
try to use $_SERVER['PHP_SELF'] instead of.
-Original Message-
From: Jeff McKeon [mailto:[EMAIL PROTECTED]
Sent: viernes, 10 de octubre de 2003 14:09
To: php
Subject: [PHP] Echo $PHP_SELF not working
I've just published a new website and something is wrong. I suspect the
PHP.ini on
--- Jay Fitzgerald [EMAIL PROTECTED] wrote:
When echoing html code that will include variables from a while or
if loop, which method is best?
...
Method 1: echo td align=\left\ VALIGN=\top\font
class=\dbtables\$employer/font/td;
OR
Method 2: td align=left valign=topfont class=dbtables?php
Jay Fitzgerald [EMAIL PROTECTED] wrote:
When echoing html code that will include variables from a while or if loop,
which method is best?
Method 1: echo td align=\left\ VALIGN=\top\font
class=\dbtables\$employer/font/td;
OR
Method 2: td align=left valign=topfont class=dbtables?php echo
Hi,
Sunday, July 6, 2003, 3:55:39 PM, you wrote:
a I'm setting up php on the apache server for the first time here running
a Slackware linux, and I cannot get the echo command to display properly.
a My source file is phptest.php and it looks like this:
a html
a head
a titlePHP Test/title
a
Hello,
This is a reply to an e-mail that you wrote on Sun, 6 Jul 2003 at 16:57,
lines prefixed by '' were originally written by you.
?php echo (h1PHP is running./h1); ?
it displays the string AND the closing double quote, paren, semicolon,
question mark, and on a new line. What the hell is
is this what you're after ?
flush();
wait(5); // I think wait() is in seconds
echo blah;
-Original Message-
From: Sebastian [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 2:54 PM
To: php list
Subject: [PHP] echo
hello all,
is it possible to delay an echo say by 5 seconds
php has a wait function? I didn't know that... But i get:
Fatal error: Call to undefined function: wait()
I just want to delay some text from loading too quick.
i am sure is can be done in java but i don't have any experience in it :s
cheers,
- Sebastian
- Original Message -
From:
--- Sebastian [EMAIL PROTECTED] wrote:
is it possible to delay an echo say by 5 seconds after the page loads?
This sounds similar to a little script I wrote a while back to demonstrate
flush() for someone. Maybe it will help you:
http://shiflett.org/tutorials/php_flush.php
Chris
=
Become
sorry - sleep(5);
-Original Message-
From: Sebastian [mailto:[EMAIL PROTECTED]
Sent: Friday, March 21, 2003 3:58 PM
To: Martin Towell; php list
Subject: Re: [PHP] echo
php has a wait function? I didn't know that... But i get:
Fatal error: Call to undefined function: wait()
I just
thank you. now we're talking, Works great :)
cheers,
- Sebastian
- Original Message -
From: Martin Towell [EMAIL PROTECTED]
| sorry - sleep(5);
|
| -Original Message-
| From: Sebastian [mailto:[EMAIL PROTECTED]
|
| php has a wait function? I didn't know that... But i get:
|
Two ways:
a) echo blabla # $blabla;
or
b) echo 'blabla # '.$blabla;
The # character must just be inside the echo's quotes.
On Wed, 2003-02-12 at 13:36, Paul McQ wrote:
I am writing an application in which I need to redirect to an url using the
Header function. This redirection must
At 13:46 12-2-03, you wrote:
The code I am trying to get working is shown below however, as the # is
interpreted as a comment the header function is only redirecting to
./itemadmin.php3?submittedby=$submittedbycat=$cat
$head = ./itemadmin.php3?submittedby=$submittedbycat=$cat#$edit;
header
-Original Message-
From: Chris Hayes [mailto:[EMAIL PROTECTED]]
Sent: 12 February 2003 13:02
At 13:46 12-2-03, you wrote:
The code I am trying to get working is shown below however,
as the # is
interpreted as a comment the header function is only redirecting to
You need to remove the semicolon from the beginning of your heredoc
expression. The semicolon tells PHP (incorrectly) that the instruction
terminates, while in fact it doesn't:
?php
$name=John Doe
echo ENDOFECHO;
HTML
BODY
H3ECHO TEST/H3
Hello, $name.
/BODY
/HTML
ENDOFECHO;
?
This will work.
Hello Marco,
Marco Tabini [EMAIL PROTECTED] wrote:
You need to remove the semicolon from the beginning of your heredoc
expression. The semicolon tells PHP (incorrectly) that the instruction
terminates, while in fact it doesn't:
I think...
?php
$name=John Doe
you meant the semicolon at
Hi,
Tuesday, October 1, 2002, 4:12:46 AM, you wrote:
DB List,
DB On my php.4.2.3, Apache 4.0.42 install my echo statements all output the
DB number of characters written (in hex).
DB So this code:
DB echo addrone$id-addrone/addrone;
DB echo addrtwo$id-addrtwo/addrtwo;
DB echo
How can I echo some text such as Processing, please wait... whilst the
PHP
script runs. Rather than displaying a blank screen with the results being
echoed once the script has fully completed.
echo (\Processing, please wait...\);
flush();
//processing code here...
--
Jon Farmer
Systems
On Monday, March 25, 2002, at 10:39 AM, Chris wrote:
How can I echo some text such as Processing, please wait... whilst
the PHP
script runs. Rather than displaying a blank screen with the results
being
echoed once the script has fully completed.
A hackish and inelegant way to do it
Thanks that fixed the problem, but I have a question then. Am I supposed to
put the ' in the $_SESSION[] in the normal parts of code. Thanks,
Dave
Miguel Cruz [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
On Thu, 21 Mar 2002, David Johansen wrote:
I was just
Johansen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 4:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] echo and Session Variables
Thanks that fixed the problem, but I have a question then. Am I supposed
to
put the ' in the $_SESSION[] in the normal parts of code. Thanks,
Dave
Miguel
PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] echo and Session Variables
Thanks that fixed the problem, but I have a question then. Am I supposed
to
put the ' in the $_SESSION[] in the normal parts of code. Thanks,
Dave
Miguel Cruz [EMAIL PROTECTED] wrote in message
[EMAIL PROTECTED]"
..
$myarray = array ('myvar' = 'myvalue');
echo $myarray[myvar]; // prints out 'myvalue'
-Kevin
-Original Message-
From: David Johansen [mailto:[EMAIL PROTECTED]]
Sent: Thursday, March 21, 2002 4:26 PM
To: [EMAIL PROTECTED]
Subject: Re: [PHP] echo and Session Variables
Thanks
On Thursday, March 21, 2002, at 06:26 PM, David Johansen wrote:
Thanks that fixed the problem, but I have a question then. Am I
supposed to
put the ' in the $_SESSION[] in the normal parts of code. Thanks,
Dave
You should use either single quotes or double quotes in any associative
ok.. well an echo goes
echo what u want to echo;
so u would do it this way
echo html code.. making sure u dont use a in any of ur html code;
php stuff
echo $phpvariable br more html code.. if u want to use a use a '
instead.;
more php stuff.
Neil
- Original Message -
From: André
ok.. well an echo goes
echo what u want to echo;
so u would do it this way
echo html code.. making sure u dont use a in any of ur html code;
php stuff
echo $phpvariable br more html code.. if u want to use a use a '
instead.;
more php stuff.
If u want to use use \ instead...
if u
Personal, I think I expressed myself wrong, because it is like this that I
use, but the one that I want to know, if the echo HTML code it is much
slower than if I put the HTML code out of the PHP block.
Can these several echo's harm the processing of the server? Can that turn
slow the
If I understand you correctly, use Javascript to open a second browser
window for url_2.
Miles Thompson
At 02:49 PM 1/10/2002 -0200, Rodrigo Peres wrote:
Dear List,
I have this sql command that grabs a result of 3 tables. What i want is if
there's a way to do a while printing the site and
Sorry, Ithink that I not explain right. I nedd to create a list, something
like:
url site br
url site br
url_2 site_2 br
url_2 site_2 br
When the values returned by url and site finished them proceed to url_2 and
site_2 values.
Thank's
Rodrigo
on 1/10/02 3:16 PM, Miles Thompson at [EMAIL
Two ways actually ...
You could execute two separate SQL statements, and process them one after
another.
or
You could process your result set, echo()'ing or print()'ing the first
elements of the result set, then go back to the beginning and do the second
set, something like this ...
for ($i
Hy,
universal2001 wrote:
Hi again!
Thanks for the reply!
I still have another question:
so I tired to use (echo) like this:
echo table border=0 cellpadding=0 cellspacing=0 width=639
tr
tdimg src=img_heading/spacer.gif width=25 height=1
border=0/td
/tr
tr
td
Hellorghh !!!
You'd better do like this :
echo table border='0' cellpadding='0' cellspacing='0' width='639'
Le Mercredi 9 Janvier 2002 13:05, Henning Sprang a écrit :
Hy,
universal2001 wrote:
Hi again!
Thanks for the reply!
I still have another question:
so I tired to use
Nicolas Costes wrote:
Hellorghh !!!
You'd better do like this :
echo table border='0' cellpadding='0' cellspacing='0' width='639'
just another one - but i am too out of practice with html standarts to
know if this is compliant ( a browser showing a result doesn't
neccessary mean it's
Yes, you're right !!!
some browsers like IE will accept even blah blah=0, blah blah='0', blah
blah=0, and some like Opera will only understand :
IE SuxWithTooEasySyntax=1 ;-))
Le Mercredi 9 Janvier 2002 14:17, Henning Sprang a écrit :
Nicolas Costes wrote:
--
( * Nicolas Costes,
Hello,
In addition to Henning Sprang's fine solutions, you can also do the following (given
you use PHP 4);
? $xmp_width = 5;
$xmp_tdcolor = #FF;
$xmp_text = Some text;
echo EOF
TABLE WIDTH={$xmp_width}
TRTD COLOR={$xmp_tdcolor}$xmp_text/TD/TR
/TABLE
EOF;
?
Note that
on 1/9/02 8:17 AM, Henning Sprang at [EMAIL PROTECTED] appended the
following bits to my mbox:
just another one - but i am too out of practice with html standarts to
know if this is compliant ( a browser showing a result doesn't
neccessary mean it's standarts compliant!)
FYI:
By default,
On 2002.01.09 02:00:55 -0600 universal2001 wrote:
so I tired to use (echo) like this:
echo table border=0 cellpadding=0 cellspacing=0 width=639
tr
tdimg src=img_heading/spacer.gif width=25 height=1
border=0/td
/tr
tr
td colspan=11img name=index_r1_c1
101 - 200 of 226 matches
Mail list logo