RE: [PHP] Variables - showing onpage

From: Jeroen Serpieters (jeroen_at_lunitechs.com)
Date: 11/30/03


To: "'Biph'" <biph69@biph.com>, <php-general@lists.php.net>
Date: Sun, 30 Nov 2003 20:04:30 +0100

You have to put it between double quotes.

Jeroen

--
Thou shalt not follow the NULL pointer, for chaos and madness await thee at
its end. 
(Henry Spencer) 
Politics.be op imode!
http://i.politics.be/
-----Original Message-----
From: Biph [mailto:biph69@biph.com] 
Sent: Sunday, November 30, 2003 8:54 AM
To: php-general@lists.php.net
Subject: [PHP] Variables - showing onpage
I have a question, and maybe I'm an idiot (alright not maybe). I can't get
the damned variables to stop showing their variable names on the screen,
like a variable $stock_quote appears in the HTML as $stock_quote, what the
hell am I doing wrong? I'm using Win2K to test a site on my own computer
using Apache2, but all variables from MySQL to PHP are just showing up as
the variable name and not the value in the HTML.Any help would be nice.
example:
<?php
$price = 1.00
print('the price is: $price')
?>
is apprearing as:
the price is $price
in the HTML instead of:
the price is 1.00
-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Relevant Pages

  • Re: [PHP] Re: Webhotel structure
    ... know if and how I can get SSH access to my web host. ... No fixed IP for your web host?!? ... Yes ssh and fixed IP is properly a must for you guys who having php ... The price of getting these this is rather high compared to my 2$ a month, ...
    (php.general)
  • Re: OT Dims want to raise gas prices!
    ... imagine that we have a six month project worth USD $30M ... At current exchange rates that's about 50 PHP ... will lose 300M PHP which I'll make up, more or less, on the futures ... I don't really care because I've locked in my contract price for the job ...
    (alt.autos.toyota)
  • Re: Is PHP the right language for this application (described below)? If not, any suggestions?
    ... which language should this application be written in (PHP, SQL, JS, ... PHP will work fine, so will Java, Perl and several other languages. ... Impossible to give a price without a lot more details. ... I don't even give a fixed price for programming until the screen designs are completed, data requirements nailed down, program flow defined... ...
    (comp.lang.php)
  • Variables - showing onpage
    ... like a variable $stock_quote appears in the HTML as $stock_quote, ... but all variables from MySQL to PHP are just showing up as ... print('the price is: $price') ...
    (php.general)
  • Re: Ecommerce site, discount structures
    ... I am at a point where discount structures have been requested to be ... in a 'contract price' structure, where my client has agreed to sell the customers an item for a fixed price over a particular time. ... Is this something one query could achieve or is a bit of PHP coding ... If you use the order you had, you'd always have to make 4 queries. ...
    (comp.lang.php)