Re: [PHP] How is this possible???? (addslashes)

2011-02-17 Thread Paul S
On Thu, 17 Feb 2011 07:50:45 +0700, Daniel Brown wrote: No offense, but are you kidding me? The host disables phpinfo() for security reasons, but keeps 4.4.4 running? Talk about running, Paul run away from them. Fast. AND they have a condition (this reported) that could cause (

Re: [PHP] How is this possible???? (addslashes)

2011-02-16 Thread Daniel Brown
On Feb 16, 2011 7:07 PM, "Paul S" wrote: > > Can anyone please tell me how the addslashes output ("note = Everyone''s a > card on the \earth") in the following example is possible. It is > "addslashes" output but this result is consistent with the output from > "post" when runtime is set: 1): a si

[PHP] How is this possible???? (addslashes)

2011-02-16 Thread Paul S
Can anyone please tell me how the addslashes output ("note = Everyone''s a card on the \earth") in the following example is possible. It is "addslashes" output but this result is consistent with the output from "post" when runtime is set: 1): a single quote is inserted before a single quote and no

Re: [PHP] How is this possible? [Solved]

2009-10-28 Thread Jim Lucas
tedd wrote: > At 2:48 PM -0400 10/28/09, Robert Cummings wrote: >> Bob McConnell wrote: >>> From: tedd >>> I found the problem, which basically was that I had declared a variable in a preceding script with the same name, namely $user_id. When I changed my script to $u_id, everyt

Re: [PHP] How is this possible? [Solved]

2009-10-28 Thread tedd
At 2:48 PM -0400 10/28/09, Robert Cummings wrote: Bob McConnell wrote: From: tedd I found the problem, which basically was that I had declared a variable in a preceding script with the same name, namely $user_id. When I changed my script to $u_id, everything worked as before. Clearly, Globa

Re: [PHP] How is this possible? [Solved]

2009-10-28 Thread Robert Cummings
Bob McConnell wrote: From: tedd I found the problem, which basically was that I had declared a variable in a preceding script with the same name, namely $user_id. When I changed my script to $u_id, everything worked as before. Clearly, Globals are evil. It's a bitch to have to work with co

RE: [PHP] How is this possible? [Solved]

2009-10-28 Thread Bob McConnell
From: tedd > I found the problem, which basically was that I had declared a > variable in a preceding script with the same name, namely $user_id. > > When I changed my script to $u_id, everything worked as before. > Clearly, Globals are evil. > > It's a bitch to have to work with code you can'

Re: [PHP] How is this possible? [Solved]

2009-10-28 Thread tedd
To all: I found the problem, which basically was that I had declared a variable in a preceding script with the same name, namely $user_id. When I changed my script to $u_id, everything worked as before. Clearly, Globals are evil. It's a bitch to have to work with code you can't change unle

Re: [PHP] How is this possible?

2009-10-28 Thread Ashley Sheridan
On Wed, 2009-10-28 at 13:47 -0400, Andrew Ballard wrote: > On Wed, Oct 28, 2009 at 1:27 PM, tedd wrote: > > Hi gang: > > > > I am reviewing some old code (circa 2003) where the programmer had one > > script call another and placed variable values in the URL, like so: > > > > > > > > That seem

Re: [PHP] How is this possible?

2009-10-28 Thread Andrew Ballard
On Wed, Oct 28, 2009 at 1:27 PM, tedd wrote: > Hi gang: > > I am reviewing some old code (circa 2003) where the programmer had one > script call another and placed variable values in the URL, like so: > >     > > That seems innocent enough. However, in the called script (i.e., > "user_edit.php") t

Re: [PHP] How is this possible?

2009-10-28 Thread Adam Randall
I don't do this personally, but you can probably get your script working by doing something like this: foreach( $_GET as $k => $v ) $$k = $v; You would put that at the top of your page, but be aware that it allows other people to set variables on your page (just like register globals does). If y

Re: [PHP] How is this possible?

2009-10-28 Thread David Otton
2009/10/28 tedd : > > Hi gang: > http://php.net/manual/en/security.globals.php -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] How is this possible?

2009-10-28 Thread tedd
Hi gang: I am reviewing some old code (circa 2003) where the programmer had one script call another and placed variable values in the URL, like so: That seems innocent enough. However, in the called script (i.e., "user_edit.php") there are no: $user_id = $_GET['user_id']; $ac

Re: [PHP] How is this possible?

2003-07-27 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > Hi, > Thanks for replying. > > You say: Nothing special html wise. > then can you tell me how its done? The basic logic is like this: foreach option_of_hosting_service name_of_service foreach hosting_company_service hosting_value_of_service

Re: [PHP] How is this possible?

2003-07-27 Thread Ryan A
Hey, Thanks again. It should take me around an hour or two just to figure out what you wrote...:-D I guess i have to hit the manual quite a bit. Thanks, -Ryan > > Hi, > > Thanks for replying. > > no probs... > > > > > I have not worked with arrays much other than simple arrays like the $_get > >

Re: [PHP] How is this possible?

2003-07-27 Thread skate
> Hi, > Thanks for replying. no probs... > > I have not worked with arrays much other than simple arrays like the $_get > or $_post and the database ones...can you give me a another emample on how > to do this please? > like how to put my db into an array and then call each part > sorry, i

Re: [PHP] How is this possible?

2003-07-27 Thread skate
> You say: Nothing special html wise. > then can you tell me how its done? there's some nice simple CSS behind it to give the nice border and colour changes, but yes, nothing special HTML wise. it's a simple table > > The content is dynamic being pulled from the database..how do i get it in > one

Re: [PHP] How is this possible?

2003-07-27 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > Hi, > Thanks for replying. > > You say: Nothing special html wise. > then can you tell me how its done? > > The content is dynamic being pulled from the database..how do i get it in > one table in that layout? > > > There are different ways you can do t

Re: [PHP] How is this possible?

2003-07-27 Thread Ryan A
Hi, Thanks for replying. You say: Nothing special html wise. then can you tell me how its done? The content is dynamic being pulled from the database..how do i get it in one table in that layout? > There are different ways you can do this it could help to know what > kind of data structure you h

Re: [PHP] How is this possible?

2003-07-27 Thread Curt Zirzow
* Thus wrote Ryan A ([EMAIL PROTECTED]): > Hi, > I am trying to get my data into a very similar layout as this: > http://hostfilter.com/ComparePlan.asp?IntVal1=389&IntVal2=546&IntVal3=605 > see the table with the plans...how is he getting that in one table? what > kind of logic is that? the best I

Re: [PHP] How is this possible?

2003-07-27 Thread Robert Cummings
ASP merely outputs HTML. His table is basic HTML dynamically rendered perhaps by an ASP component. This is also trivial to do in PHP. Cheers, Rob. On Sun, 2003-07-27 at 18:38, Ryan A wrote: > Hi, > I am trying to get my data into a very similar layout as this: > http://hostfilter.com/ComparePlan

[PHP] How is this possible?

2003-07-27 Thread Ryan A
Hi, I am trying to get my data into a very similar layout as this: http://hostfilter.com/ComparePlan.asp?IntVal1=389&IntVal2=546&IntVal3=605 see the table with the plans...how is he getting that in one table? what kind of logic is that? the best I can do is for each column I have to use another tab