: [PHP] combining variables...
Simply put, can I connect 2 variables, to make one...
I want to output:
$view_request_$i
making for example a string:
view_all_2
But I'm getting errors..?
Parse error: parse error in /home/risk/public_html/download/results3.php
on line 675
is there a s
* Thus wrote [EMAIL PROTECTED] ([EMAIL PROTECTED]):
> Sadly, it didnb't work...
>
> here's my code... I wanna repeat and output final variables 6 times...
>
> ==
>
> for ($i = 1; $i <= 6; $i++) {
>
> if ($view_request_bu_$i != '') {
>
From: <[EMAIL PROTECTED]>
> I want to output:
> $view_request_$i
echo ${'view_request_'.$i};
echo ${"view_request_$i"};
Read the manual section on Variable Variables, please.
---John Holmes...
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.ph
= strtolower($view_request_region_$i);
> } else if ($view_request_id_$i != '') {
> $view_request_$i = strtolower($view_request_id_$i);
> } else {
> $view_request_$i = "Error";
> }
>
> }
>
> =
>
>
>
>
>
> Richard Dav
$view_request_$i = strtolower($view_request_id_$i);
} else {
$view_request_$i = "Error";
}
}
=
Richard Davey <[EMAIL PROTECTED]>
06/04/2004 18:27
Please respond to
Richard Davey <[EMAIL PROTECTED]>
To
[EMAIL PROTECTED]
cc
Subject
Re: [PHP] c
Hello Tristan,
Tuesday, April 6, 2004, 6:14:19 PM, you wrote:
TPrsc> Simply put, can I connect 2 variables, to make one...
TPrsc> I want to output:
TPrsc> $view_request_$i
TPrsc> making for example a string:
TPrsc> view_all_2
I believe it's $view_request_$$i
--
Best regards,
Richard Davey
Simply put, can I connect 2 variables, to make one...
I want to output:
$view_request_$i
making for example a string:
view_all_2
But I'm getting errors..?
Parse error: parse error in /home/risk/public_html/download/results3.php
on line 675
is there a simple explination...?
**
Well that was embarrassing. I guess [CTRL]+[ENTER] sends mail in Outlook!
Let's try that again:
Okay, I think this is an easy thing but I can't figure it out:
I have a script that will be uploading (up to) 4 files:
$file1
$file2
$file3
$file4
Each $file variable has associated $original_name, $
Okay, I think this is an easy thing but I can't figure it out:
I have a script that will be uploading (up to) 4 files:
$file1
$file2
$file3
$file4
Each $file variable has associated $original_name, $filesize, and $filename
variables. Each file:
$original_name = $HTTP_POST_FILES['userfile1']['na
ing'
jack
-Original Message-
From: Tyler Longren [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, September 12, 2001 4:52 PM
To: PHP-General
Subject: [PHP] combining variables
Hello,
I have this:
for ($i=1; $i<=$num_answers; $i++) {
print "Answer $i: ";
}
Hello,
I have this:
for ($i=1; $i<=$num_answers; $i++) {
print "Answer $i: ";
}
The user will enter the possible answers up there. When that form is
submitted, I want to take the value from answer$i ($answer$i). I can't do
this though. Here's what I've done:
for ($i=1
11 matches
Mail list logo