Re: [PHP] What am I missing here?

2010-06-28 Thread Jay Ess
Rick Dwyer wrote: Hello List. I am completely at a loss for why the line of code below returns the desired value: $PATH_INFO= substr($_SERVER['REQUEST_URI'],strlen($_SERVER['SCRI PT_NAME']), strlen($_SERVER['REQUEST_URI'])); BUT, putting the same line of code on 1 line fails to return

Re: [PHP] What am I missing here?

2010-06-21 Thread Simcha Younger
On Sat, 19 Jun 2010 13:21:02 -0400 Rick Dwyer rpdw...@earthlink.net wrote: Hello List. I am completely at a loss for why the line of code below returns the desired value: $PATH_INFO= substr($_SERVER['REQUEST_URI'],strlen($_SERVER['SCRI PT_NAME']), strlen($_SERVER['REQUEST_URI']));

[PHP] What am I missing here?

2010-06-19 Thread Rick Dwyer
Hello List. I am completely at a loss for why the line of code below returns the desired value: $PATH_INFO= substr($_SERVER['REQUEST_URI'],strlen($_SERVER['SCRI PT_NAME']), strlen($_SERVER['REQUEST_URI'])); BUT, putting the same line of code on 1 line fails to return anything: $PATH_INFO=

[PHP] What am I missing?

2006-03-07 Thread Gustav Wiberg
Hi there! Why... I have this code: bAdd manufacturer:/bbr form name=frmMan action=admin/phpfunctions/addnewmanufacturer.php?frmManufacturer=?php echo $frmIDManufacturer;?frmModel=?php echo $frmIDModel;? method=post input type=text size=30 name=frmManufacturerName input type=submit value=ok

Re: [PHP] What am I missing?

2006-03-07 Thread Joe Henry
On Tuesday 07 March 2006 11:45 am, Gustav Wiberg wrote: form name=frmMan action=admin/phpfunctions/addnewmanufacturer.php?frmManufacturer=?php echo $frmIDManufacturer;?frmModel=?php echo $frmIDModel;? method=post input type=text size=30 name=frmManufacturerName input type=submit value=ok

RE: [PHP] What am I missing?

2006-03-07 Thread Shaunak Kashyap
this transmission in error, please notify the sender by reply e-mail and destroy all copies of this transmission. -Original Message- From: Gustav Wiberg [mailto:[EMAIL PROTECTED] Sent: Tuesday, March 07, 2006 10:45 AM To: PHP General Subject: [PHP] What am I missing? Hi there! Why

Re: [PHP] What am I missing?

2006-03-07 Thread Gustav Wiberg
- Original Message - From: Shaunak Kashyap [EMAIL PROTECTED] To: Gustav Wiberg [EMAIL PROTECTED]; PHP General php-general@lists.php.net Sent: Tuesday, March 07, 2006 8:05 PM Subject: RE: [PHP] What am I missing? It is more of an HTML/HTTP question than PHP but here's my shot

[PHP] what am I missing..interpolation?

2005-05-15 Thread blackwater dev
Hello, this works fine: $name=fido; $string=my dog's name is $name; echo $string;//prints my dog's name is fido but when I store the string my dog's name is $name in the db and pull it out: //do the query $row=$datab-fetch(); $name=fido; $string=$name['db_column']; echo $string//prints my

Re: [PHP] what am I missing..interpolation?

2005-05-15 Thread Justin Gruenberg
On 15/05/05, blackwater dev [EMAIL PROTECTED] wrote: Hello, this works fine: $name=fido; $string=my dog's name is $name; echo $string;//prints my dog's name is fido but when I store the string my dog's name is $name in the db and pull it out: //do the query $row=$datab-fetch();

Re: [PHP] what am I missing..interpolation?

2005-05-15 Thread blackwater dev
Thanks for the info but I tried it both ways and get this error: Parse error: parse error, unexpected T_FOR, expecting ',' or ';' in dogs.php(11) : eval()'d code on line 1 On 5/15/05, Krid [EMAIL PROTECTED] wrote: Hi! Try eval(echo $string); blackwater dev wrote: Hello, this works

Re: [PHP] what am I missing..interpolation?

2005-05-15 Thread Krid
Hi! Try eval(echo $string); blackwater dev wrote: Hello, this works fine: $name=fido; $string=my dog's name is $name; echo $string;//prints my dog's name is fido but when I store the string my dog's name is $name in the db and pull it out: //do the query $row=$datab-fetch(); $name=fido;

Re: [PHP] what am I missing..interpolation?

2005-05-15 Thread Evert | Rooftop
Shouldn't that be: eval(echo \$string\); its pretty insecure though, be sure your users are not allowed to change the db field, because they can do some serious damage. grt, Evert Krid wrote: Hi! Try eval(echo $string); blackwater dev wrote: Hello, this works fine: $name=fido; $string=my dog's

Re: [PHP] what am I missing..interpolation?

2005-05-15 Thread Marek Kilimajer
blackwater dev wrote: Hello, this works fine: $name=fido; $string=my dog's name is $name; echo $string;//prints my dog's name is fido but when I store the string my dog's name is $name in the db and pull it out: //do the query $row=$datab-fetch(); $name=fido; $string=$name['db_column']; echo

Re: [PHP] what am I missing..interpolation?

2005-05-15 Thread Richard Lynch
On Sun, May 15, 2005 8:27 am, blackwater dev said: Thanks for the info but I tried it both ways and get this error: Parse error: parse error, unexpected T_FOR, expecting ',' or ';' in dogs.php(11) : eval()'d code on line 1 On 5/15/05, Krid [EMAIL PROTECTED] wrote: Hi! Try eval(echo

[PHP] What am I missing with this code?

2002-11-08 Thread John Meyer
for($i=1;$i13;$i++) { ? lia href=categoryresult.php?condition=?=urlencode(where month(UserDOB)= . $i)??=jdmonthname($i,0)?nbsp;(?=$i?)/a/li ?php } ? All it's printing out is November

RE: [PHP] What am I missing with this code?

2002-11-08 Thread Ford, Mike [LSS]
-Original Message- From: John Meyer [mailto:johnmeyer_1978;yahoo.com] Sent: 08 November 2002 11:45 for($i=1;$i13;$i++) { ? lia href=categoryresult.php?condition=?=urlencode(where month(UserDOB)= .

[PHP] what am I missing here?

2002-08-15 Thread Alexander Ross
what am i missing here?? I have a simple if statement that wont do whats inside it even when true. this works: echo $key==$info_keys[0]; // returns 1 or 0 correctly if($key==$info_keys[0]) $query = $query; else $query = $query. and ; $query =

Re: [PHP] what am I missing here?

2002-08-15 Thread Rasmus Lerdorf
You are missing operator precedence. ! is higher precedence than == so your statement effectively becomes: if ( (!$key) == $info_keys[0]) which makes no sense. Normally you would write that code as: if ( $key != $info_keys[0] ) -Rasmus On Thu, 15 Aug 2002, Alexander Ross wrote: what