Re: [PHP-DB] HTML Tables in PHP...

2005-09-26 Thread Rasmus Lerdorf
There are many ways to do it.  I prefer one of these two:

?php
  echo EOB
table align=center width=$width
EOB;
?

or.

table align=center width=?php echo $width?

-Rasmus

Micah Stevens wrote:
 I apologize, I was being rude. 
 
 More specifically, I don't see why you say all html tags should be in single 
 quotes. There's several ways you can do things in almost every situation in 
 PHP, and I can just as easily say you should always use double quotes. I of 
 course would be wrong though.
 
 echo table align='center' width='80%';
 
 provides the convenience of inserting variables:
 echo table align='center' width='$width';
 
 which you can not do with single quotes, so I could argue that double quotes 
 are better. 
 
 So, in contrast to my original rude comment (again, I apologize) perhaps I 
 should of said: Why do you say that? 
 
 -Micah 
 
 On Sunday 25 September 2005 9:44 pm, Micah Stevens wrote:
 
That's ridiculous.

On Sunday 25 September 2005 9:28 pm, balwant singh wrote:

all html tags should be in single quote when used in php like

echo 'table align=center width=80%';
echo 'trtd align=center'; echo HELLO;
echo '/td/tr/table';



With Best Wishes

Balwant Singh

INDO ASIAN FUSEGEAR LTD.
A-39, HOSIERY COMPLEX
PHASE - II EXTN., NOIDA
PH: +91 - 120 - 3048140 / 304
FAX: +91 - 120 - 2568 473
WEB : www.indoasian.com



 Original Message 
From: Daryl Booth [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] HTML Tables in PHP...
Date: 9/25/2005 19:05


How can I give a table /table with all of it's parameters in PHP in
each of the cells there is a variable that gives me the data back but I
can't get the table to show as it always gives me either this error
Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';'
in C:\FoxServ\www\Dad\proofing\index.php on line 41 or this one when I
don't put in the quotes Parse error: parse error, unexpected '',
expecting ',' or ';' in C:\FoxServ\www\Dad\proofing\index.php on line
41.



Here is the PHP code I'm using:



?php

$datei=c:\licence.txt;





if(file_exists($datei)){

 $nachricht=The licence has been validated thank-you!;

 $fp = fopen($datei,r);

 fpassthru($fp);

 fclose($fp);

 }

else{

 $nachricht=The licence doesn't exist please contact us!

 echo table width=694 height=501 border=0 align=center
cellpadding=0 cellspacing=0

 tr

   td height=109 colspan=7img src=images/1.jpg width=857
height=109 border=0 usemap=#Map/td

 /tr

 tr

   td width=39 rowspan=2img src=images/lefty.jpg width=39
height=394/td

   td width=8 height=369nbsp;/td

   td width=240 class=style5/td

   td width=12 height=369 class=style5nbsp;/td

   td width=407 height=369 class=style5span
class=style3b$nachricht/b/spanbr/td

   td width=346 rowspan=2img src=images/righty.jpg width=346
height=394 border=0 usemap=#Map2/td

 /tr

 tr

   td height=23 colspan=5img src=images/bottom.jpg width=472
height=23/td

 /tr

/table;

}

?
 
 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] HTML Tables in PHP...

2005-09-26 Thread Micah Stevens

Rasmus, there's a shortcut for this:

?php echo $width?

?=$width?

Saves me a lot of time, although it can be confusing for those unfamiliar with 
it. 

-Micah


On Sunday 25 September 2005 11:01 pm, Rasmus Lerdorf wrote:
 There are many ways to do it.  I prefer one of these two:

 ?php
   echo EOB
 table align=center width=$width
 EOB;
 ?

 or.

 table align=center width=?php echo $width?

 -Rasmus

 Micah Stevens wrote:
  I apologize, I was being rude.
 
  More specifically, I don't see why you say all html tags should be in
  single quotes. There's several ways you can do things in almost every
  situation in PHP, and I can just as easily say you should always use
  double quotes. I of course would be wrong though.
 
  echo table align='center' width='80%';
 
  provides the convenience of inserting variables:
  echo table align='center' width='$width';
 
  which you can not do with single quotes, so I could argue that double
  quotes are better.
 
  So, in contrast to my original rude comment (again, I apologize) perhaps
  I should of said: Why do you say that?
 
  -Micah
 
  On Sunday 25 September 2005 9:44 pm, Micah Stevens wrote:
 That's ridiculous.
 
 On Sunday 25 September 2005 9:28 pm, balwant singh wrote:
 all html tags should be in single quote when used in php like
 
 echo 'table align=center width=80%';
 echo 'trtd align=center'; echo HELLO;
 echo '/td/tr/table';
 
 
 
 With Best Wishes
 
 Balwant Singh
 
 INDO ASIAN FUSEGEAR LTD.
 A-39, HOSIERY COMPLEX
 PHASE - II EXTN., NOIDA
 PH: +91 - 120 - 3048140 / 304
 FAX: +91 - 120 - 2568 473
 WEB : www.indoasian.com
 
 
 
  Original Message 
 From: Daryl Booth [EMAIL PROTECTED]
 To: php-db@lists.php.net
 Subject: [PHP-DB] HTML Tables in PHP...
 Date: 9/25/2005 19:05
 
 How can I give a table /table with all of it's parameters in PHP in
 each of the cells there is a variable that gives me the data back but I
 can't get the table to show as it always gives me either this error
 Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';'
 in C:\FoxServ\www\Dad\proofing\index.php on line 41 or this one when I
 don't put in the quotes Parse error: parse error, unexpected '',
 expecting ',' or ';' in C:\FoxServ\www\Dad\proofing\index.php on line
 41.
 
 
 
 Here is the PHP code I'm using:
 
 
 
 ?php
 
 $datei=c:\licence.txt;
 
 
 
 
 
 if(file_exists($datei)){
 
  $nachricht=The licence has been validated thank-you!;
 
  $fp = fopen($datei,r);
 
  fpassthru($fp);
 
  fclose($fp);
 
  }
 
 else{
 
  $nachricht=The licence doesn't exist please contact us!
 
  echo table width=694 height=501 border=0 align=center
 cellpadding=0 cellspacing=0
 
  tr
 
td height=109 colspan=7img src=images/1.jpg width=857
 height=109 border=0 usemap=#Map/td
 
  /tr
 
  tr
 
td width=39 rowspan=2img src=images/lefty.jpg width=39
 height=394/td
 
td width=8 height=369nbsp;/td
 
td width=240 class=style5/td
 
td width=12 height=369 class=style5nbsp;/td
 
td width=407 height=369 class=style5span
 class=style3b$nachricht/b/spanbr/td
 
td width=346 rowspan=2img src=images/righty.jpg width=346
 height=394 border=0 usemap=#Map2/td
 
  /tr
 
  tr
 
td height=23 colspan=5img src=images/bottom.jpg width=472
 height=23/td
 
  /tr
 
 /table;
 
 }
 
 ?

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] HTML Tables in PHP...

2005-09-26 Thread Esteamedpw
 
In a message dated 9/26/2005 1:34:20 A.M. Central Standard Time,  
[EMAIL PROTECTED] writes:

Rasmus,  there's a shortcut for this:

?php echo  $width?

?=$width?

Saves me a lot of time, although  it can be confusing for those unfamiliar 
with 
it.  

-Micah



I'm not sure if Rasmus would be too familiar with that one? I heard he  was a 
n00b
 
 ;-D
 
- Clint


Re: [PHP-DB] HTML Tables in PHP...

2005-09-26 Thread Mark Jordan
boo ... short tags
though i admit it's gotta be easier to type.

Why I don't like short tags : I use XML a lot.

Mark

On 26/09/05, Micah Stevens [EMAIL PROTECTED] wrote:

 Rasmus, there's a shortcut for this:

 ?php echo $width?

 ?=$width?

 Saves me a lot of time, although it can be confusing for those unfamiliar with
 it.

 -Micah


 On Sunday 25 September 2005 11:01 pm, Rasmus Lerdorf wrote:
  There are many ways to do it.  I prefer one of these two:
 
  ?php
echo EOB
  table align=center width=$width
  EOB;
  ?
 
  or.
 
  table align=center width=?php echo $width?
 
  -Rasmus
 
  Micah Stevens wrote:
   I apologize, I was being rude.
  
   More specifically, I don't see why you say all html tags should be in
   single quotes. There's several ways you can do things in almost every
   situation in PHP, and I can just as easily say you should always use
   double quotes. I of course would be wrong though.
  
   echo table align='center' width='80%';
  
   provides the convenience of inserting variables:
   echo table align='center' width='$width';
  
   which you can not do with single quotes, so I could argue that double
   quotes are better.
  
   So, in contrast to my original rude comment (again, I apologize) perhaps
   I should of said: Why do you say that?
  
   -Micah
  
   On Sunday 25 September 2005 9:44 pm, Micah Stevens wrote:
  That's ridiculous.
  
  On Sunday 25 September 2005 9:28 pm, balwant singh wrote:
  all html tags should be in single quote when used in php like
  
  echo 'table align=center width=80%';
  echo 'trtd align=center'; echo HELLO;
  echo '/td/tr/table';
  
  
  
  With Best Wishes
  
  Balwant Singh
  
  INDO ASIAN FUSEGEAR LTD.
  A-39, HOSIERY COMPLEX
  PHASE - II EXTN., NOIDA
  PH: +91 - 120 - 3048140 / 304
  FAX: +91 - 120 - 2568 473
  WEB : www.indoasian.com
  
  
  
   Original Message 
  From: Daryl Booth [EMAIL PROTECTED]
  To: php-db@lists.php.net
  Subject: [PHP-DB] HTML Tables in PHP...
  Date: 9/25/2005 19:05
  
  How can I give a table /table with all of it's parameters in PHP in
  each of the cells there is a variable that gives me the data back but I
  can't get the table to show as it always gives me either this error
  Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';'
  in C:\FoxServ\www\Dad\proofing\index.php on line 41 or this one when I
  don't put in the quotes Parse error: parse error, unexpected '',
  expecting ',' or ';' in C:\FoxServ\www\Dad\proofing\index.php on line
  41.
  
  
  
  Here is the PHP code I'm using:
  
  
  
  ?php
  
  $datei=c:\licence.txt;
  
  
  
  
  
  if(file_exists($datei)){
  
   $nachricht=The licence has been validated thank-you!;
  
   $fp = fopen($datei,r);
  
   fpassthru($fp);
  
   fclose($fp);
  
   }
  
  else{
  
   $nachricht=The licence doesn't exist please contact us!
  
   echo table width=694 height=501 border=0 align=center
  cellpadding=0 cellspacing=0
  
   tr
  
 td height=109 colspan=7img src=images/1.jpg width=857
  height=109 border=0 usemap=#Map/td
  
   /tr
  
   tr
  
 td width=39 rowspan=2img src=images/lefty.jpg width=39
  height=394/td
  
 td width=8 height=369nbsp;/td
  
 td width=240 class=style5/td
  
 td width=12 height=369 class=style5nbsp;/td
  
 td width=407 height=369 class=style5span
  class=style3b$nachricht/b/spanbr/td
  
 td width=346 rowspan=2img src=images/righty.jpg width=346
  height=394 border=0 usemap=#Map2/td
  
   /tr
  
   tr
  
 td height=23 colspan=5img src=images/bottom.jpg width=472
  height=23/td
  
   /tr
  
  /table;
  
  }
  
  ?

 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php




--
theExile.vze.com
www.stpaulswalsall.org.uk

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] HTML Tables in PHP...

2005-09-26 Thread Rasmus Lerdorf
Micah Stevens wrote:
 Rasmus, there's a shortcut for this:
 
 ?php echo $width?
 
 ?=$width?
 
 Saves me a lot of time, although it can be confusing for those unfamiliar 
 with 
 it. 

Yes, I am quite familiar with it ;)

But I don't like it.  It's an ugly ASP'ism.

-Rasmus

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] HTML Tables in PHP...

2005-09-26 Thread mario
On Sun, 2005-09-25 at 13:35, Daryl Booth wrote:
 
   $nachricht=The licence doesn't exist please contact us!  ;  close string!
 
   echo open string! table width= 
now, you need to escape , otherwise you close the string. I am used to
do that in the following way, although I don't think it is the most
elegant, 

 \694\ and so on height=\501\ border=\0\ align=\center\
 cellpadding=\0\ cellspacing=\0\

bye
mario

.

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] HTML Tables in PHP...

2005-09-26 Thread mario
hi,

silly question: what is EOB?
google returns: 
Your search - EOB site:www.php.net - did not match any documents.

I see your (short) side note on EOB on 
http://www.oracle.com/technology/pub/articles/php_experts/rasmus_php.html

EOB is not an entry in your 'programming PHP' (very nice) book index. Is
there some more documentation? Maybe something from C?
thanks regards  mario


On Mon, 2005-09-26 at 06:01, Rasmus Lerdorf wrote:
 There are many ways to do it.  I prefer one of these two:
 
 ?php
   echo EOB
 table align=center width=$width
 EOB;
 ?
 
 or.
 
 table align=center width=?php echo $width?
 
 -Rasmus
 
 Micah Stevens wrote:
  I apologize, I was being rude. 
  
  More specifically, I don't see why you say all html tags should be in 
  single 
  quotes. There's several ways you can do things in almost every situation in 
  PHP, and I can just as easily say you should always use double quotes. I of 
  course would be wrong though.
  
  echo table align='center' width='80%';
  
  provides the convenience of inserting variables:
  echo table align='center' width='$width';
  
  which you can not do with single quotes, so I could argue that double 
  quotes 
  are better. 
  
  So, in contrast to my original rude comment (again, I apologize) perhaps I 
  should of said: Why do you say that? 
  
  -Micah 
  
  On Sunday 25 September 2005 9:44 pm, Micah Stevens wrote:
  
 That's ridiculous.
 
 On Sunday 25 September 2005 9:28 pm, balwant singh wrote:
 
 all html tags should be in single quote when used in php like
 
 echo 'table align=center width=80%';
 echo 'trtd align=center'; echo HELLO;
 echo '/td/tr/table';
 
 
 
 With Best Wishes
 
 Balwant Singh
 
 INDO ASIAN FUSEGEAR LTD.
 A-39, HOSIERY COMPLEX
 PHASE - II EXTN., NOIDA
 PH: +91 - 120 - 3048140 / 304
 FAX: +91 - 120 - 2568 473
 WEB : www.indoasian.com
 
 
 
  Original Message 
 From: Daryl Booth [EMAIL PROTECTED]
 To: php-db@lists.php.net
 Subject: [PHP-DB] HTML Tables in PHP...
 Date: 9/25/2005 19:05
 
 
 How can I give a table /table with all of it's parameters in PHP in
 each of the cells there is a variable that gives me the data back but I
 can't get the table to show as it always gives me either this error
 Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';'
 in C:\FoxServ\www\Dad\proofing\index.php on line 41 or this one when I
 don't put in the quotes Parse error: parse error, unexpected '',
 expecting ',' or ';' in C:\FoxServ\www\Dad\proofing\index.php on line
 41.
 
 
 
 Here is the PHP code I'm using:
 
 
 
 ?php
 
 $datei=c:\licence.txt;
 
 
 
 
 
 if(file_exists($datei)){
 
  $nachricht=The licence has been validated thank-you!;
 
  $fp = fopen($datei,r);
 
  fpassthru($fp);
 
  fclose($fp);
 
  }
 
 else{
 
  $nachricht=The licence doesn't exist please contact us!
 
  echo table width=694 height=501 border=0 align=center
 cellpadding=0 cellspacing=0
 
  tr
 
td height=109 colspan=7img src=images/1.jpg width=857
 height=109 border=0 usemap=#Map/td
 
  /tr
 
  tr
 
td width=39 rowspan=2img src=images/lefty.jpg width=39
 height=394/td
 
td width=8 height=369nbsp;/td
 
td width=240 class=style5/td
 
td width=12 height=369 class=style5nbsp;/td
 
td width=407 height=369 class=style5span
 class=style3b$nachricht/b/spanbr/td
 
td width=346 rowspan=2img src=images/righty.jpg width=346
 height=394 border=0 usemap=#Map2/td
 
  /tr
 
  tr
 
td height=23 colspan=5img src=images/bottom.jpg width=472
 height=23/td
 
  /tr
 
 /table;
 
 }
 
 ?
  
  

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] HTML Tables in PHP...

2005-09-26 Thread Bastien Koert


Hey Micah,

Nothing like telling the guy WHO WROTE THE LANGUAGE about its 
shortcuts...lol


Bastien


From: Rasmus Lerdorf [EMAIL PROTECTED]
To: Micah Stevens [EMAIL PROTECTED]
CC: php-db@lists.php.net
Subject: Re: [PHP-DB] HTML Tables in PHP...
Date: Sun, 25 Sep 2005 23:56:30 -0700

Micah Stevens wrote:
 Rasmus, there's a shortcut for this:

 ?php echo $width?

 ?=$width?

 Saves me a lot of time, although it can be confusing for those 
unfamiliar with

 it.

Yes, I am quite familiar with it ;)

But I don't like it.  It's an ugly ASP'ism.

-Rasmus

--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] HTML Tables in PHP...

2005-09-26 Thread Rasmus Lerdorf
mario wrote:
 hi,
 
 silly question: what is EOB?
 google returns: 
 Your search - EOB site:www.php.net - did not match any documents.
 
 I see your (short) side note on EOB on 
 http://www.oracle.com/technology/pub/articles/php_experts/rasmus_php.html
 
 EOB is not an entry in your 'programming PHP' (very nice) book index. Is
 there some more documentation? Maybe something from C?
 thanks regards  mario

EOB doesn't mean anything.  You can put whatever string you want there.
   eg.

echo  FOOBAR
Put stuff here
and here
and here
FOOBAR;

This is known as a here-doc.  Go to http://php.net/heredoc for
documentation on this.

-Rasmus

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] HTML Tables in PHP...

2005-09-26 Thread Micah Stevens

It's ugly, but if I was looking for form versus ease of use, I'd wouldn't be 
using PHP. :) 

-Micah 


On Sunday 25 September 2005 11:56 pm, Rasmus Lerdorf wrote:
 Micah Stevens wrote:
  Rasmus, there's a shortcut for this:
 
  ?php echo $width?
 
  ?=$width?
 
  Saves me a lot of time, although it can be confusing for those unfamiliar
  with it.

 Yes, I am quite familiar with it ;)

 But I don't like it.  It's an ugly ASP'ism.

 -Rasmus

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] HTML Tables in PHP...

2005-09-26 Thread Micah Stevens


Haha.. shows how much I know. 

*bowing*

Hey, Rasmus, thanks for the PHP! 

-Micah 

On Monday 26 September 2005 4:29 am, Bastien Koert wrote:
 Hey Micah,

 Nothing like telling the guy WHO WROTE THE LANGUAGE about its
 shortcuts...lol

 Bastien

 From: Rasmus Lerdorf [EMAIL PROTECTED]
 To: Micah Stevens [EMAIL PROTECTED]
 CC: php-db@lists.php.net
 Subject: Re: [PHP-DB] HTML Tables in PHP...
 Date: Sun, 25 Sep 2005 23:56:30 -0700
 
 Micah Stevens wrote:
   Rasmus, there's a shortcut for this:
  
   ?php echo $width?
  
   ?=$width?
  
   Saves me a lot of time, although it can be confusing for those
 
 unfamiliar with
 
   it.
 
 Yes, I am quite familiar with it ;)
 
 But I don't like it.  It's an ugly ASP'ism.
 
 -Rasmus
 
 --
 PHP Database Mailing List (http://www.php.net/)
 To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



RE: [PHP-DB] HTML Tables in PHP...

2005-09-25 Thread Murray @ PlanetThoughtful
 How can I give a table /table with all of it's parameters in PHP in
 each
 of the cells there is a variable that gives me the data back but I can't
 get
 the table to show as it always gives me either this error Parse error:
 parse error, unexpected T_LNUMBER, expecting ',' or ';' in
 C:\FoxServ\www\Dad\proofing\index.php on line 41 or this one when I don't
 put in the quotes Parse error: parse error, unexpected '', expecting ','
 or ';' in C:\FoxServ\www\Dad\proofing\index.php on line 41.

Hi Daryl,

Put double-quotes around the entire string, and use single-quotes around the
table property values etc. Something similar to:

echo table width='694' height='501' border='0' align='center'
cellpadding='0' cellspacing='0'

tr
td width='100'Some stuff/td
/tr
/table;

Also, in the code you've posted you don't have a closing double-quote and
semi-colon at the end of:

 $nachricht=The licence doesn't exist please contact us!

This probably should be:

$nachricht=The licence doesn't exist please contact us!;

Much warmth,

Murray
---
Lost in thought...
http://www.planetthoughtful.org

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] HTML Tables in PHP...

2005-09-25 Thread balwant singh

all html tags should be in single quote when used in php like

echo 'table align=center width=80%';
echo 'trtd align=center'; echo HELLO;
echo '/td/tr/table';



With Best Wishes

Balwant Singh

INDO ASIAN FUSEGEAR LTD.
A-39, HOSIERY COMPLEX
PHASE - II EXTN., NOIDA
PH: +91 - 120 - 3048140 / 304
FAX: +91 - 120 - 2568 473
WEB : www.indoasian.com



 Original Message 
From: Daryl Booth [EMAIL PROTECTED]
To: php-db@lists.php.net
Subject: [PHP-DB] HTML Tables in PHP...
Date: 9/25/2005 19:05


How can I give a table /table with all of it's parameters in PHP in each
of the cells there is a variable that gives me the data back but I can't get
the table to show as it always gives me either this error Parse error:
parse error, unexpected T_LNUMBER, expecting ',' or ';' in
C:\FoxServ\www\Dad\proofing\index.php on line 41 or this one when I don't
put in the quotes Parse error: parse error, unexpected '', expecting ','
or ';' in C:\FoxServ\www\Dad\proofing\index.php on line 41.



Here is the PHP code I'm using:



?php

$datei=c:\licence.txt;





if(file_exists($datei)){

 $nachricht=The licence has been validated thank-you!;

 $fp = fopen($datei,r);

 fpassthru($fp);

 fclose($fp);

 }

else{

 $nachricht=The licence doesn't exist please contact us!

 echo table width=694 height=501 border=0 align=center
cellpadding=0 cellspacing=0

 tr

   td height=109 colspan=7img src=images/1.jpg width=857
height=109 border=0 usemap=#Map/td

 /tr

 tr

   td width=39 rowspan=2img src=images/lefty.jpg width=39
height=394/td

   td width=8 height=369nbsp;/td

   td width=240 class=style5/td

   td width=12 height=369 class=style5nbsp;/td

   td width=407 height=369 class=style5span
class=style3b$nachricht/b/spanbr/td

   td width=346 rowspan=2img src=images/righty.jpg width=346
height=394 border=0 usemap=#Map2/td

 /tr

 tr

   td height=23 colspan=5img src=images/bottom.jpg width=472
height=23/td

 /tr

/table;

} 


?


 



--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Re: [PHP-DB] HTML Tables in PHP...

2005-09-25 Thread Micah Stevens

I apologize, I was being rude. 

More specifically, I don't see why you say all html tags should be in single 
quotes. There's several ways you can do things in almost every situation in 
PHP, and I can just as easily say you should always use double quotes. I of 
course would be wrong though.

echo table align='center' width='80%';

provides the convenience of inserting variables:
echo table align='center' width='$width';

which you can not do with single quotes, so I could argue that double quotes 
are better. 

So, in contrast to my original rude comment (again, I apologize) perhaps I 
should of said: Why do you say that? 

-Micah 

On Sunday 25 September 2005 9:44 pm, Micah Stevens wrote:
 That's ridiculous.

 On Sunday 25 September 2005 9:28 pm, balwant singh wrote:
  all html tags should be in single quote when used in php like
 
  echo 'table align=center width=80%';
  echo 'trtd align=center'; echo HELLO;
  echo '/td/tr/table';
 
 
 
  With Best Wishes
 
  Balwant Singh
  
  INDO ASIAN FUSEGEAR LTD.
  A-39, HOSIERY COMPLEX
  PHASE - II EXTN., NOIDA
  PH: +91 - 120 - 3048140 / 304
  FAX: +91 - 120 - 2568 473
  WEB : www.indoasian.com
 
 
 
   Original Message 
  From: Daryl Booth [EMAIL PROTECTED]
  To: php-db@lists.php.net
  Subject: [PHP-DB] HTML Tables in PHP...
  Date: 9/25/2005 19:05
 
  How can I give a table /table with all of it's parameters in PHP in
   each of the cells there is a variable that gives me the data back but I
   can't get the table to show as it always gives me either this error
   Parse error: parse error, unexpected T_LNUMBER, expecting ',' or ';'
   in C:\FoxServ\www\Dad\proofing\index.php on line 41 or this one when I
   don't put in the quotes Parse error: parse error, unexpected '',
   expecting ',' or ';' in C:\FoxServ\www\Dad\proofing\index.php on line
   41.
  
  
  
  Here is the PHP code I'm using:
  
  
  
  ?php
  
  $datei=c:\licence.txt;
  
  
  
  
  
  if(file_exists($datei)){
  
$nachricht=The licence has been validated thank-you!;
  
$fp = fopen($datei,r);
  
fpassthru($fp);
  
fclose($fp);
  
}
  
  else{
  
$nachricht=The licence doesn't exist please contact us!
  
echo table width=694 height=501 border=0 align=center
  cellpadding=0 cellspacing=0
  
tr
  
  td height=109 colspan=7img src=images/1.jpg width=857
  height=109 border=0 usemap=#Map/td
  
/tr
  
tr
  
  td width=39 rowspan=2img src=images/lefty.jpg width=39
  height=394/td
  
  td width=8 height=369nbsp;/td
  
  td width=240 class=style5/td
  
  td width=12 height=369 class=style5nbsp;/td
  
  td width=407 height=369 class=style5span
  class=style3b$nachricht/b/spanbr/td
  
  td width=346 rowspan=2img src=images/righty.jpg width=346
  height=394 border=0 usemap=#Map2/td
  
/tr
  
tr
  
  td height=23 colspan=5img src=images/bottom.jpg width=472
  height=23/td
  
/tr
  
  /table;
  
  }
  
  ?

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php