do much better at remembering PHP variable names
than SQL column AS names.
Yes, yes, I know some idiot out there will clobber their vars *lol* --
or not clobber their vars as necessary *grin*. Either way, list()'ing
out all the fields you've already declared in the query (or that are
implied
On Wed, 2007-04-11 at 22:10 -0500, Richard Lynch wrote:
On Wed, April 11, 2007 9:58 pm, Robert Cummings wrote:
I see it as two different things being matched up in a clear
unequivocal manner, to make self-documenting code.
I'm all for self-documenting code, that's why I don't in practice
it wrong. I know I am.
Chris
--
View this message in context:
http://www.nabble.com/PHP-Session-variable-tf3473378.html#a9693267
Sent from the PHP - General mailing list archive at Nabble.com.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
On Mar 27, 2007, at 9:17 AM, Chris Carter wrote:
Hi,
I have retrieved 4 values from database. Out of which 3 are
displayed on the
same page and one variable, which is email address, needs to be
carried to
the next page through a hyper link, the next page is actually a web
form. I
can do
Chris Carter wrote:
session_start();
session_register (tamma);
$HTTP_SESSION_VARS [tamma] = $email;
Use $_SESSION. HTTP_SESSION_VARS is deprecated and hasn't been used
since PHP 4.0.6 (or rather, shouldn't have been)
You don't need session_register().
On the webform:
?
: thankYouContact.php );
?
Please advice a work around for this if I am doing it wrong. I know I am.
Chris
--
View this message in context:
http://www.nabble.com/PHP-Session-variable-tf3473378.html#a9693267 Sent
from the PHP - General mailing list archive at Nabble.com.
I would try $_SESSION
I am using a script to generate a sitemap. It displays the page names
(mypage.php) but I want it to display the titles. The page heads and title
are generated dynamically so the line below does not work
if(preg_match('title(.+)/title'i, $f, $matches)){
However all the paged titles are stored
Okay, I feel like the correct answer to this is about 2mm back in my grey
matter.
1. I have a query that pulls the last row number when a newly inserted
record is added:
$maximum=SELECT MAX(payment_id) FROM payment_request;
$max_result=mssql_query($maximum);
2007. 03. 23, péntek keltezéssel 10.45-kor Dan Shirah ezt írta:
Okay, I feel like the correct answer to this is about 2mm back in my grey
matter.
1. I have a query that pulls the last row number when a newly inserted
record is added:
$maximum=SELECT MAX(payment_id) FROM payment_request;
The reason I have to use it as I posted is because I am using Microsoft SQL
server instead of MySQL. And I haven't found a php function for MSSQL that
works the same as mysql_insert_id()
So, to come out with a comparable function with pretty reliable results, I
follow this process:
1. User
-Original Message-
From: Németh Zoltán [mailto:[EMAIL PROTECTED]
2007. 03. 23, péntek keltezéssel 10.45-kor Dan Shirah ezt írta:
Okay, I feel like the correct answer to this is about 2mm back
in my grey
matter.
1. I have a query that pulls the last row number when a newly
2007. 03. 23, péntek keltezéssel 11.07-kor Dan Shirah ezt írta:
The reason I have to use it as I posted is because I am using
Microsoft SQL server instead of MySQL. And I haven't found a php
function for MSSQL that works the same as mysql_insert_id()
you wrote something earlier as far as I
@lists.php.net
Sent: Friday, March 23, 2007 4:07 PM
Subject: Re: [PHP] POST a variable
The reason I have to use it as I posted is because I am using Microsoft SQL
server instead of MySQL. And I haven't found a php function for MSSQL that
works the same as mysql_insert_id()
So, to come out
:* Friday, March 23, 2007 7:14 PM
*Subject:* Re: [PHP] POST a variable
Satyam, I'm trying to retrieve the id using the identity method, but I do
not get anything returned. Do you see anything wrong with this code?
$get_max = SELECT scope_identity();
$max_result = mssql_query($get_max) or die
PM
Subject: Re: [PHP] POST a variable
Sorry, I was more tailoring my question to the syntax of my query. It
wasn't displaying anything for my echo.
I've changed it to this now:
$get_max = SELECT scope_identity();
$max_result = mssql_query($get_max) or die(mssql_error());
$max_id
PROTECTED]
Cc: php-general php-general@lists.php.net
Sent: Friday, March 23, 2007 7:48 PM
Subject: Re: [PHP] POST a variable
Sorry, I was more tailoring my question to the syntax of my query. It
wasn't displaying anything for my echo.
I've changed it to this now:
$get_max = SELECT scope_identity
On Friday 23 March 2007 15:45, Dan Shirah wrote:
Okay, I feel like the correct answer to this is about 2mm back in my grey
matter.
1. I have a query that pulls the last row number when a newly inserted
record is added:
$maximum=SELECT MAX(payment_id) FROM payment_request;
On Fri, March 23, 2007 9:45 am, Dan Shirah wrote:
Okay, I feel like the correct answer to this is about 2mm back in my
grey
matter.
1. I have a query that pulls the last row number when a newly inserted
record is added:
$maximum=SELECT MAX(payment_id) FROM payment_request;
On Fri, March 23, 2007 10:07 am, Dan Shirah wrote:
The reason I have to use it as I posted is because I am using
Microsoft SQL
server instead of MySQL. And I haven't found a php function for MSSQL
that
works the same as mysql_insert_id()
I guarantee that there is a way to do it in MSSQL,
On Fri, March 23, 2007 5:47 am, Ross wrote:
I am using a script to generate a sitemap. It displays the page names
(mypage.php) but I want it to display the titles. The page heads and
title
are generated dynamically so the line below does not work
if(preg_match('title(.+)/title'i, $f,
echo $_SERVER['PHP_SELF']; ? methode=get
yet I've a large PHP variable which I'd like to access afterwards as
well.
Is this possible somehow?
O. Wyss
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Mpff, you should start by minding XSS attacks on PHP_SELF, and no echoing it
as raw ... :
http://blog.phpdoc.info/archives/13-XSS-Woes.html
/ TURKEY
Web: http://www.haydartuna.net
Otto Wyss [EMAIL PROTECTED] wrote in message
news:[EMAIL PROTECTED]
I submit a form back to itself with
action=?PHP echo $_SERVER['PHP_SELF']; ? methode=get
yet I've a large PHP variable which I'd like to access afterwards as well.
Is this possible
Otto Wyss escreveu:
From an arry I create a table like
foreach ($persons as $key = $pers) {
echo tdinput name=\K$key\ type=\checkbox\ .../td
td.../td
}
so each checkbox field has its own name created from $key. Yet how can I
access these fields (names) later on?
foreach
At 5:37 PM -0500 12/18/06, Beauford wrote:
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
-snip- most excellent code and advice from Richard (Thanks Richard).
Hmm. I was thinking more of a one liner that would just clear the memory
buffer of these variables, but
Beauford wrote:
Hi,
I have a page with a form on it which posts to itself. The problem is when
someone refreshes the page it enters the data into the DB again. How do I
clear these variables so that doesn't happen. I tried the unset function,
but no luck. I really don't want to use sessions
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Monday, December 18, 2006 3:39 AM
To: Beauford
Cc: PHP
Subject: Re: [PHP] Clearing POST variable on page refresh
Beauford wrote:
Hi,
I have a page with a form on it which posts to itself. The problem
Brad Fuller wrote:
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Monday, December 18, 2006 3:39 AM
To: Beauford
Cc: PHP
Subject: Re: [PHP] Clearing POST variable on page refresh
Beauford wrote:
Hi,
I have a page with a form on it which posts to itself
On Mon, 2006-12-18 at 09:34 -0500, Brad Fuller wrote:
-Original Message-
From: Jochem Maas [mailto:[EMAIL PROTECTED]
Sent: Monday, December 18, 2006 3:39 AM
To: Beauford
Cc: PHP
Subject: Re: [PHP] Clearing POST vari
My way of getting around this has been to put the data
On Sun, December 17, 2006 4:59 pm, Beauford wrote:
I have a page with a form on it which posts to itself. The problem is
when
someone refreshes the page it enters the data into the DB again. How
do I
clear these variables so that doesn't happen. I tried the unset
function,
but no luck. I
-Original Message-
From: Richard Lynch [mailto:[EMAIL PROTECTED]
Sent: December 18, 2006 3:46 PM
To: Beauford
Cc: PHP
Subject: Re: [PHP] Clearing POST variable on page refresh
On Sun, December 17, 2006 4:59 pm, Beauford wrote:
I have a page with a form on it which posts
Hi,
I have a page with a form on it which posts to itself. The problem is when
someone refreshes the page it enters the data into the DB again. How do I
clear these variables so that doesn't happen. I tried the unset function,
but no luck. I really don't want to use sessions or cookies as this is
Beauford wrote:
I have a page with a form on it which posts to itself. The problem is when
someone refreshes the page it enters the data into the DB again. How do I
clear these variables so that doesn't happen. I tried the unset function,
but no luck. I really don't want to use sessions or
My take:
$number = (int) $number;
if ($number 1) $number = 1;
You could error out for 1, or compare the original with the (int)
cast to see if PHP considers them = and error out if not, while using
the (int) cast to be SURE you have an int, or...
But a typecast and inequality test should be
On 10/12/06, Richard Lynch [EMAIL PROTECTED] wrote:
My take:
$number = (int) $number;
if ($number 1) $number = 1;
You could error out for 1, or compare the original with the (int)
cast to see if PHP considers them = and error out if not, while using
the (int) cast to be SURE you have an
# [EMAIL PROTECTED] / 2006-12-06 23:51:45 +0200:
How can I ensure that a variable contains a postive integer number?
I'm currently using this code:
$number=(1-$number);
$number=(1-$number);
if ( $number1 ) { $number=1; }
But I'm sure that there is a better way. What would
is_numeric will return true for a positive or negative number.
How can I ensure that a variable contains a postive integer number?
I'm currently using this code:
$number=(1-$number);
$number=(1-$number);
if ( $number1 ) { $number=1; }
But I'm sure that there is a better way. What would that be?
Dotan Cohen
On 06/12/06, Melanie Maddix [EMAIL PROTECTED] wrote:
[snip]
How can I ensure that a variable contains a postive integer number?
[/snip]
Hi Dotan,
Check the php manual for is_int() and is_numeric().
Thanks, Melanie. I completely forget- I already knew about those
functions! That's what
How can I ensure that a variable contains a postive integer number?
I'm currently using this code:
$number=(1-$number);
$number=(1-$number);
if ( $number1 ) { $number=1; }
But I'm sure that there is a better way. What would that be?
this will check that $input is a positive
, December 06, 2006 2:20 PM
To: 'php php'
Subject: RE: [PHP] Ensuring that variable contains a number
How can I ensure that a variable contains a postive integer number?
I'm currently using this code:
$number=(1-$number);
$number=(1-$number);
if ( $number1 ) { $number=1; }
But I'm sure
[mailto:[EMAIL PROTECTED]
Sent: Wednesday, December 06, 2006 2:20 PM
To: 'php php'
Subject: RE: [PHP] Ensuring that variable contains a number
How can I ensure that a variable contains a postive integer number?
I'm currently using this code:
$number=(1-$number);
$number=(1-$number
. Do You really
want to Upload it?...If YES, i will overwrite it. otherwise, i won't do
anything.
i am using javascript for popup windows. i used confirm()
function(CANCEL / OK).
the problem is, i am not able to get the variable value for php
script. Of course, php is server side
am not able to get the variable value for php
script. Of course, php is server side programming language javascript
client side programming language.
Plz see my code give the solution.
See my progress:
upload.php
# Checking for the File existance
that This file is exits. Do You really
want to Upload it?...If YES, i will overwrite it. otherwise, i won't do
anything.
i am using javascript for popup windows. i used confirm()
function(CANCEL / OK).
the problem is, i am not able to get the variable value for php
script
At 3:09 AM -0700 10/10/06, Captain wrote:
If it is not possible, plz give any other solution.
Expecting ur reply.
It's possible, but why not do it in php -- it's simpler -- like:
?php
// specify the directory where the uploaded file should end up
$path = 'upload/' ;
// specify the filetypes
confirm()
function(CANCEL / OK).
the problem is, i am not able to get the variable value for
php
script. Of course, php is server side programming language
javascript
client side programming language.
You say Of course so blithely, but clearly do not yet understand the
implications
Hey all.
I'm overhauling my PHP based CMS and want to know how to set a variable
equal to an HTML string, but without having to escape all the quotes!
Example:
$var = form name=events method=POST action=
select class=menus name=news
On 10/7/06, sit1way [EMAIL PROTECTED] wrote:
I'm overhauling my PHP based CMS and want to know how to set a variable
equal to an HTML string, but without having to escape all the quotes!
Noah, meet HEREDOC. HEREDOC, meet Noah:
You can mingle double and singal quotes. So choose one for the PHP
quotes and one for the HTML quotes, HTML will use both interchangably.
For example your string could become:
$var = form name='events' ...;
I'd also look at the echo's inside the string, they look like they
shouldn't be there.
07, 2006 12:03 PM
Subject: Re: [PHP] Re: Set Variable = Long HTML String?
On 10/7/06, sit1way [EMAIL PROTECTED] wrote:
I'm overhauling my PHP based CMS and want to know how to set a variable
equal to an HTML string, but without having to escape all the quotes!
Noah, meet HEREDOC. HEREDOC
At 12:10 AM -0400 9/9/06, Robert Cummings wrote:
On Sat, 2006-09-09 at 12:57 +0900, Dave M G wrote:
PHP List,
I have a list of variables:
$001
$002
$003
$004
And what I'd like to do is have a function which will select and return
one of them. Something like:
public function
function access_var($var) {
return $this-$$var;
}
}
$cs = new myClass;
$cs-access_var('_001');
// Done
BTW, please make certain that you aren't really naming your variables as
$001, $002 and $003. Those are bad variable names, as PHP only allows
for variables beginning
On Sat, 2006-09-09 at 08:44 -0400, tedd wrote:
At 12:10 AM -0400 9/9/06, Robert Cummings wrote:
On Sat, 2006-09-09 at 12:57 +0900, Dave M G wrote:
PHP List,
I have a list of variables:
$001
$002
$003
$004
And what I'd like to do is have a function which will select and
At 11:19 AM -0400 9/9/06, Robert Cummings wrote:
Or something like that. :-)
$easy_peasyier = array(foo1 = 1, foo2 = 2, foo3 = 3);
echo($easy_peasyier['foo1']);
That's zero marks on any exam I ever wrote. You didn't properly read the
business requirements that specified the
On Sat, 2006-09-09 at 16:05 -0400, tedd wrote:
At 11:19 AM -0400 9/9/06, Robert Cummings wrote:
Or something like that. :-)
$easy_peasyier = array(foo1 = 1, foo2 = 2, foo3 = 3);
echo($easy_peasyier['foo1']);
That's zero marks on any exam I ever wrote. You didn't
On Sat, 09 Sep 2006 08:55:35 -0500, Christopher Weldon [EMAIL PROTECTED]
wrote:
class myClass {
private var $_001;
private var $_002;
private var $_003;
public function access_var($var) {
return $this-$$var;
}
}
$cs = new myClass;
Martin, Tedd, Robert, Christopher,
Thank you all for your advice and examples.
I had not been aware that it was possible to simply add another $
ahead of the variable, to make a variable of the variable's name.
And especially thank you for expressing an example in terms of a class
and
PHP List,
I have a list of variables:
$001
$002
$003
$004
And what I'd like to do is have a function which will select and return
one of them. Something like:
public function returnVar($n)
{
return $(somehow n is made to reference the name of the variable);
}
And then in later scripts I
On Sat, 2006-09-09 at 12:57 +0900, Dave M G wrote:
PHP List,
I have a list of variables:
$001
$002
$003
$004
And what I'd like to do is have a function which will select and return
one of them. Something like:
public function returnVar($n)
{
return $(somehow n is made to
hi,
I think this will make more clearance about the problem..
actully i want to compare 2 files which has all most same variable's but the
values are diffrant for e.g.
1 file has username=abc and other has username = bcd ...
my actul code is like ...
my first file contains ... file1.php
On Mon, 14 Aug 2006 19:14:42 -0500, Richard Lynch wrote:
On Mon, August 14, 2006 2:41 am, Ivo F.A.C. Fokkema wrote:
On Sat, 12 Aug 2006 16:36:36 -0500, Richard Lynch wrote:
On Fri, August 11, 2006 3:11 am, Ivo F.A.C. Fokkema wrote:
Well, if it's true that some browsers on some platforms ignore
On Sat, 12 Aug 2006 16:36:36 -0500, Richard Lynch wrote:
On Fri, August 11, 2006 3:11 am, Ivo F.A.C. Fokkema wrote:
Well, if it's true that some browsers on some platforms ignore the W3C
standard, I guess we could use:
Or perhaps these browsers pre-date W3C standards. :-)
Sure, but in newer
On Mon, August 14, 2006 2:41 am, Ivo F.A.C. Fokkema wrote:
On Sat, 12 Aug 2006 16:36:36 -0500, Richard Lynch wrote:
On Fri, August 11, 2006 3:11 am, Ivo F.A.C. Fokkema wrote:
Well, if it's true that some browsers on some platforms ignore the
W3C
standard, I guess we could use:
Or perhaps
On Fri, August 11, 2006 2:40 am, Reinhart Viane wrote:
Actually, I know that it's browser/OS dependent, cuz I had a bunch of
Mac users who sent only \r all the time.
This may be true only of OS 9, and you may not care about them
anymore, but there it is.
I also would not be so quick to
On Fri, August 11, 2006 3:11 am, Ivo F.A.C. Fokkema wrote:
Well, if it's true that some browsers on some platforms ignore the W3C
standard, I guess we could use:
Or perhaps these browsers pre-date W3C standards. :-)
$datelist =
str_replace(array(\r\n,\n,\r),'BR',$_POST['datelist']);
Two
Actually, I know that it's browser/OS dependent, cuz I had a bunch of
Mac users who sent only \r all the time.
This may be true only of OS 9, and you may not care about them
anymore, but there it is.
I also would not be so quick to claim that Linux sends \r\n -- It
could be dependent on the
On Thu, 10 Aug 2006 17:17:23 -0500, Richard Lynch wrote:
On Tue, August 8, 2006 3:47 pm, Fokkema, I.F.A.C. \(HKG\) wrote:
If the user separates the dates by an enter in the textarea, you
need
to
explode on \r\n. To be able to handle both, you need to use
split()
or
preg_split().
When I
On Tue, August 8, 2006 3:47 pm, Fokkema, I.F.A.C. \(HKG\) wrote:
try this:
$string = 3/01/2005 29/12/2005 2/01/2006 20/02/2006 28/12/2006
1/01/2007
15/02/2007;
$array = explode(' ', $string);
foreach ($array as $value) echo Date: $valuebr /;
If the user separates the dates by an enter in
I want to send variable variables to a function but I cannot seem to get the
syntax correct. This is what I have so far...
function my_function ($$moule_no) {
// do something with $$module_no
}
my_function ($module1)
my_function ($module2)
my_function ($module3)
--
PHP General Mailing
Ross wrote:
I want to send variable variables to a function but I cannot seem to get the
syntax correct. This is what I have so far...
function my_function ($$moule_no) {
// do something with $$module_no
}
my_function ($module1)
my_function ($module2)
my_function
:[EMAIL PROTECTED]
Sent: Tuesday, August 08, 2006 7:26 PM
To: php-general@lists.php.net
Subject: [PHP] sending a variable variables to a function
I want to send variable variables to a function but I cannot seem to get the
syntax correct. This is what I have so far...
function my_function
A. I have a page on which people can supply dates in a text area. Dates are
entered like this:
3/01/2005
29/12/2005
2/01/2006
20/02/2006
28/12/2006
1/01/2007
15/02/2007
B. Now I need this Post element to be broken into pieces (per date) and each
of those pieces should be put into a text so the
On 08/08/06, Reinhart Viane [EMAIL PROTECTED] wrote:
A. I have a page on which people can supply dates in a text area. Dates
are
entered like this:
3/01/2005
29/12/2005
2/01/2006
20/02/2006
28/12/2006
1/01/2007
15/02/2007
B. Now I need this Post element to be broken into pieces (per date) and
On Tue, 08 Aug 2006 14:50:53 +0100, Dave Goodchild wrote:
On 08/08/06, Reinhart Viane [EMAIL PROTECTED] wrote:
A. I have a page on which people can supply dates in a text area. Dates
are
entered like this:
3/01/2005
29/12/2005
2/01/2006
20/02/2006
28/12/2006
1/01/2007
15/02/2007
B.
On Tue, 2006-08-08 at 16:06 +0200, Reinhart Viane wrote:
try this:
$string = 3/01/2005 29/12/2005 2/01/2006 20/02/2006 28/12/2006 1/01/2007
15/02/2007;
$array = explode(' ', $string);
foreach ($array as $value) echo Date: $valuebr /;
If the user separates the dates by an enter in
try this:
$string = 3/01/2005 29/12/2005 2/01/2006 20/02/2006 28/12/2006 1/01/2007
15/02/2007;
$array = explode(' ', $string);
foreach ($array as $value) echo Date: $valuebr /;
If the user separates the dates by an enter in the textarea, you need to
explode on \r\n. To be able to handle
Thx all
-Oorspronkelijk bericht-
Van: Ivo F.A.C. Fokkema [mailto:[EMAIL PROTECTED]
Verzonden: dinsdag 8 augustus 2006 16:17
Aan: Reinhart Viane
CC: php-general@lists.php.net
Onderwerp: RE: [PHP] break up variable and put each element in an array
On Tue, 2006-08-08 at 16:06 +0200
On Tue, August 8, 2006 8:02 am, Reinhart Viane wrote:
A. I have a page on which people can supply dates in a text area.
Dates are
entered like this:
3/01/2005
29/12/2005
2/01/2006
20/02/2006
28/12/2006
1/01/2007
15/02/2007
B. Now I need this Post element to be broken into pieces
On Tue, August 8, 2006 9:06 am, Reinhart Viane wrote:
try this:
$string = 3/01/2005 29/12/2005 2/01/2006 20/02/2006 28/12/2006
1/01/2007
15/02/2007;
$array = explode(' ', $string);
foreach ($array as $value) echo Date: $valuebr /;
If the user separates the dates by an enter in the
On Tue, August 8, 2006 7:25 am, Ross wrote:
I want to send variable variables to a function but I cannot seem to
get the
syntax correct. This is what I have so far...
function my_function ($$moule_no) {
For sure, you don't want $$ in the arglist.
You probably want $module_varname, I
try this:
$string = 3/01/2005 29/12/2005 2/01/2006 20/02/2006 28/12/2006
1/01/2007
15/02/2007;
$array = explode(' ', $string);
foreach ($array as $value) echo Date: $valuebr /;
If the user separates the dates by an enter in the textarea, you need
to
explode on \r\n. To be able to handle
WITH MYSQL NOT PHP;
5. net stop mysql
6. net start mysql
7. work hard; play hard
-Original Message-
From: João Cândido de Souza Neto [mailto:[EMAIL PROTECTED]
Sent: Monday, June 26, 2006 4:13 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: A variable inside
Alex Major wrote:
Thanks for your help with my other question, heres a new one for you.
I need to nest a variable, inside another variable. For example:
$($buildingname)level
How (if at all) is this possible?
Thanks.
Alex.
Why? What are you doing that requires that that cannot be done with
$var=1;
$var2=$var;
echo $$var2;
It´ll echo the $var´s value.
Hope it´ll help you.
Alex Major [EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
Thanks for your help with my other question, heres a new one for you.
I need to nest a variable, inside another variable. For example:
You were on the right track, but this isn't going to work.. for a couple
reasons:
$var = 1; # this is fine
$var2 = $var; # $var2 == 1 at this point
echo $$var2; # you're going to echo $1
Putting $var in double quotes makes PHP evaluate it before assigning it to
$var2, so you won't get $var
Please excuse-me.
That $ was putted by mistake.
I´sorry...
[EMAIL PROTECTED] escreveu na mensagem
news:[EMAIL PROTECTED]
You were on the right track, but this isn't going to work.. for a couple
reasons:
$var = 1; # this is fine
$var2 = $var; # $var2 == 1 at this point
echo $$var2; #
Smart Software wrote:
while(query )//here the query is opened
{
table
tr
td ?php query-name ? /td // record from database
td Please fill in your age:/td //text
td input name=age type=text /td //textbox,
td a href=? echo
Original Message
Subject: [PHP] re: undefined variable
From: Smart Software [EMAIL PROTECTED]
Date: Sun, April 30, 2006 1:50 pm
To: php-general@lists.php.net
//get content of textbox
$q = isset($_REQUEST['$textbox']) ? $_REQUEST['$textbox'] : 0;
You should use
On Sun, April 30, 2006 6:17 am, Smart Software wrote:
while(query )//here the query is opened
Please, JUST post your real code in http://pastebin.com or something!
We CANNOT figure out what the [bleep] you really have from this!
{
table
tr
td ?php query-name ? /td //
He really didn't knew what he hase done when he came to this varname.
$_POST[f-art-nlid];
burn baby :D *boom* xD
--
Smileys rule (cX.x)C --o(^_^o)
Dance for me! ^(^_^)o (o^_^)o o(^_^)^ o(^_^o)
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Hi everyone!
I use CakePHP. I found an error. Could you help me to deal this error.
Notice: Undefined variable: missing in
c:\Inetpub\wwwroot\Cake\app\views\errors\missing_controller.php on line 18
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
On 4/1/06, Pham Huu Le Quoc Phuc [EMAIL PROTECTED] wrote:
Hi everyone!
I use CakePHP. I found an error. Could you help me to deal this error.
Notice: Undefined variable: missing in
c:\Inetpub\wwwroot\Cake\app\views\errors\missing_controller.php on line 18
You're trying to use a variable that
Im having again a problem with hostname environment varible.
Hostname is set OK and it is now shown in phpinfo().
But if I run php -i hostname is set!
Any ideas?
Php version: 5.1.2
Configure './configure' '--with-apxs2=/usr/local/apache2/bin/apxs'
'--with-gettext' '--with-pgsql'
I have a file called userlist. I'm trying to read the file, and then
echo their name and add @mdah.state.ms.us with it. In the file
userlist, it looks like:
userabc
userdef
userxyz
and I have the following code:
?php
$filename = userlist;
$fp = fopen($filename, r) or die (Couldn't open
[snip]
echo $thedata.@mdah.state.ms.us;
[/snip]
Try echo $thedata.'@mdah.state.ms.us';
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Adam Williams wrote:
I have a file called userlist. I'm trying to read the file, and then
echo their name and add @mdah.state.ms.us with it. In the file
userlist, it looks like:
userabc
userdef
userxyz
and I have the following code:
?php
$filename = userlist;
$fp = fopen($filename, r) or
Hi, I just tried that, didn't make a difference, still not getting my
expected output.
[EMAIL PROTECTED] wrote:
[snip]
echo $thedata.@mdah.state.ms.us;
[/snip]
Try echo $thedata.'@mdah.state.ms.us';
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit:
[snip]
Hi, I just tried that, didn't make a difference, still not getting my
expected output.
Try echo $thedata.'@mdah.state.ms.us';
[/snip]
Ooops, my bad, try
echo $thedata .'@mdah.state.ms.us';
And please do not top post.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe,
John Nichel wrote:
Adam Williams wrote:
I have a file called userlist. I'm trying to read the file, and then
echo their name and add @mdah.state.ms.us with it. In the file
userlist, it looks like:
userabc
userdef
userxyz
and I have the following code:
?php
$filename = userlist;
$fp =
301 - 400 of 980 matches
Mail list logo