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
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']));
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=
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
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
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
- 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
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
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();
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
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;
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
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
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
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
-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)= .
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 =
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
18 matches
Mail list logo