You are here: Re: php condition in a tabel with html and php « PHP Programming Language « IT news, forums, messages
Re: php condition in a tabel with html and php

Posted by Sandman on 10/09/06 11:12

In article <1160385826.277060.94330@c28g2000cwb.googlegroups.com>,
"elia" <joseph@pcl.ch> wrote:

> Thanks, but so it's my problem! If I write ...
>
> <? if ($quantite1 > 0) {
> echo('
> <tr>
> <td article1 </td>
> <td $quantite1</td>
> <td 20 &euro;</td>
> <td $montant1 &euro;</td>
> </tr>');
> }
> else{
> echo("");
> }
> ?>
>
> ..."$quantite1" and "$montant1" is not take as variable php.
> Until "4" ou "7" or "10" it's write "$quantite1"
> Pascal

Read my reply again. If you use

echo('$foobar');

it till print a dollar sign and then foobar. If you use

echo("$foobar");

it will print the content of the variable $foobar. Not the difference.


--
Sandman[.net]

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация