Ridiculous ..won"t print or echo ...
Ridiculous ..won"t print or echo ...
am 29.07.2009 17:36:14 von tmiller
Ok in my output to Quark I need to have $P printed to the page like this:
<@$p>2118 S. Campbell Ave
So in my php which is going to be grabbing this info and formatting it for
the Quark....isn't echoing that "$p" all I get is the <@>
I have tried several things:
$p =3D $p
$p =3D print("$p")
$p =3D echo "$p"
On and on...
tried all kinds of ways to just get a $p to print to the page.....and I can
not for some reason get a $p to print to the page...what's up with that...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Ridiculous ..won"t print or echo ...
am 29.07.2009 17:43:30 von Aipok
>Ok in my output to Quark I need to have $P printed to the page like this:
>
><@$p>2118 S. Campbell Ave
>
>So in my php which is going to be grabbing this info and formatting it for
>the Quark....isn't echoing that "$p" all I get is the <@>
>
>I have tried several things:
>
>$p = $p
>
>$p = print("$p")
>
>$p = echo "$p"
>
>On and on...
>
>tried all kinds of ways to just get a $p to print to the page.....and I can
>not for some reason get a $p to print to the page...what's up with that...
>
Try with $p = '$p' to store the string $p inside the $p variable. Or, use
"echo '$p'" (without the double quotes). $p = echo "$p" makes no sense, as
the echo function doesn't return anything, and you're trying to store the
returning result (none) into the variable $p.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Ridiculous ..won"t print or echo ...
am 29.07.2009 17:45:28 von Ashley Sheridan
On Wed, 2009-07-29 at 11:36 -0400, Miller, Terion wrote:
> Ok in my output to Quark I need to have $P printed to the page like this:
>
> <@$p>2118 S. Campbell Ave
>
> So in my php which is going to be grabbing this info and formatting it for
> the Quark....isn't echoing that "$p" all I get is the <@>
>
> I have tried several things:
>
> $p = $p
>
> $p = print("$p")
>
> $p = echo "$p"
>
> On and on...
>
> tried all kinds of ways to just get a $p to print to the page.....and I can
> not for some reason get a $p to print to the page...what's up with that...
>
>
PHP is seeing the $ and thinking that $p is a variable. As you have
errors and notices turned off, you aren't seeing the notice that you are
trying to use an undefined variable.
There are several ways to get round this:
* escape like \$
* put the $p inside of single quotes in your echo
* use an escape code for the dollar
Thanks,
Ash
http://www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Ridiculous ..won"t print or echo ...(RESOLVED)
am 29.07.2009 17:47:11 von tmiller
Yep just figured that out too..the escaping thing......
Thanks
On 7/29/09 10:45 AM, "Ashley Sheridan" wrote:
On Wed, 2009-07-29 at 11:36 -0400, Miller, Terion wrote:
> Ok in my output to Quark I need to have $P printed to the page like this:
>
> <@$p>2118 S. Campbell Ave
>
> So in my php which is going to be grabbing this info and formatting it fo=
r
> the Quark....isn't echoing that "$p" all I get is the <@>
>
> I have tried several things:
>
> $p =3D $p
>
> $p =3D print("$p")
>
> $p =3D echo "$p"
>
> On and on...
>
> tried all kinds of ways to just get a $p to print to the page.....and I c=
an
> not for some reason get a $p to print to the page...what's up with that..=
..
>
>
PHP is seeing the $ and thinking that $p is a variable. As you have
errors and notices turned off, you aren't seeing the notice that you are
trying to use an undefined variable.
There are several ways to get round this:
* escape like \$
* put the $p inside of single quotes in your echo
* use an escape code for the dollar
Thanks,
Ash
http://www.ashleysheridan.co.uk
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
RE: Ridiculous ..won"t print or echo ...
am 29.07.2009 17:51:45 von M.Ford
> -----Original Message-----
> From: Miller, Terion [mailto:tmiller@springfi.gannett.com]
> Sent: 29 July 2009 16:36
>=20
> Ok in my output to Quark I need to have $P printed to the page like
> this:
>=20
> <@$p>2118 S. Campbell Ave
>=20
> So in my php which is going to be grabbing this info and formatting
> it for
> the Quark....isn't echoing that "$p" all I get is the <@>
>=20
> I have tried several things:
>=20
> $p =3D $p
>=20
> $p =3D print("$p")
"$p" is trying to interpolate the value of the variable $p -- if you had fu=
ll error reporting turned on, you would see a nonexistent variable error. O=
nce more, there are several things you can do, of which the two most obviou=
s are:
* Use single quotes: echo '$p';
* Use a backslash: echo "\$p";
Cheers!
Mike
--=20
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,
Leeds Metropolitan University, C507, Civic Quarter Campus,=20
Woodhouse Lane, LEEDS,=A0 LS1 3HE,=A0 United Kingdom=20
Email: m.ford@leedsmet.ac.uk=20
Tel: +44 113 812 4730
To view the terms under which this email is distributed, please go to http:=
//disclaimer.leedsmet.ac.uk/email.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Ridiculous ..won"t print or echo ...(RESOLVED)
am 29.07.2009 22:48:14 von tmiller
Yep I forgot about escaping the $
On 7/29/09 10:51 AM, "Ford, Mike" wrote:
> -----Original Message-----
> From: Miller, Terion [mailto:tmiller@springfi.gannett.com]
> Sent: 29 July 2009 16:36
>
> Ok in my output to Quark I need to have $P printed to the page like
> this:
>
> <@$p>2118 S. Campbell Ave
>
> So in my php which is going to be grabbing this info and formatting
> it for
> the Quark....isn't echoing that "$p" all I get is the <@>
>
> I have tried several things:
>
> $p =3D $p
>
> $p =3D print("$p")
"$p" is trying to interpolate the value of the variable $p -- if you had fu=
ll error reporting turned on, you would see a nonexistent variable error. O=
nce more, there are several things you can do, of which the two most obviou=
s are:
* Use single quotes: echo '$p';
* Use a backslash: echo "\$p";
Cheers!
Mike
--
Mike Ford,
Electronic Information Developer, Libraries and Learning Innovation,
Leeds Metropolitan University, C507, Civic Quarter Campus,
Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom
Email: m.ford@leedsmet.ac.uk
Tel: +44 113 812 4730
To view the terms under which this email is distributed, please go to http:=
//disclaimer.leedsmet.ac.uk/email.htm
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Ridiculous ..won"t print or echo ...(RESOLVED)
am 31.07.2009 10:10:25 von ondra
I'm sorry for this post. It's only testing. Thanks for understand.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Re: Ridiculous ..won"t print or echo ...(RESOLVED)
am 31.07.2009 10:21:11 von ondra
Just testing message
Miller, Terion napsal(a):
> Yep I forgot about escaping the $
>
>
>
> On 7/29/09 10:51 AM, "Ford, Mike" wrote:
>
>> -----Original Message-----
>> From: Miller, Terion [mailto:tmiller@springfi.gannett.com]
>> Sent: 29 July 2009 16:36
>>
>> Ok in my output to Quark I need to have $P printed to the page like
>> this:
>>
>> <@$p>2118 S. Campbell Ave
>>
>> So in my php which is going to be grabbing this info and formatting
>> it for
>> the Quark....isn't echoing that "$p" all I get is the <@>
>>
>> I have tried several things:
>>
>> $p = $p
>>
>> $p = print("$p")
>
> "$p" is trying to interpolate the value of the variable $p -- if you had full error reporting turned on, you would see a nonexistent variable error. Once more, there are several things you can do, of which the two most obvious are:
>
> * Use single quotes: echo '$p';
>
> * Use a backslash: echo "\$p";
>
>
> Cheers!
>
> Mike
> --
> Mike Ford,
> Electronic Information Developer, Libraries and Learning Innovation,
> Leeds Metropolitan University, C507, Civic Quarter Campus,
> Woodhouse Lane, LEEDS, LS1 3HE, United Kingdom
> Email: m.ford@leedsmet.ac.uk
> Tel: +44 113 812 4730
>
>
>
>
>
> To view the terms under which this email is distributed, please go to http://disclaimer.leedsmet.ac.uk/email.htm
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php