Gary E. Terry wrote:
I know you really meant :
${"image".($key+1)} = $_FILES['pictures']['name'][$key];
Oh yeh ;)
Glad we got there in the end! :)
--
Postgresql & php tutorials
http://www.designmagick.com/
--
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.
I know you really meant :
${"image".($key+1)} = $_FILES['pictures']['name'][$key];
And it works!!!
Thanks oh so very much!
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 30, 2006 11:46 PM
To: Gary E. Terry
Cc: php-db@l
Gary E. Terry wrote:
OK.. I am a moron.. Forgot that I had changed the name of the field in the
form, and got sidetracked and didn't change it in the
php... But, still not working correctly.
Here is the output: Array -- Array -- Array
Oops this:
${"image".($key+1)} = $_FILES['pictures']['name
OK.. I am a moron.. Forgot that I had changed the name of the field in the
form, and got sidetracked and didn't change it in the
php... But, still not working correctly.
Here is the output: Array -- Array -- Array
from:
$error) {
if ($error == UPLOAD_ERR_OK) {
echo "$error_codes[
Gary E. Terry wrote:
Nope... here is the output.
"-- -- Array ( [error] => )"
So files aren't being uploaded properly at all.
Does your form have:
enctype="multipart/form-data"
in the form header?
ie
Are your picture fields files?
Upload file:
--
Postgresql & php tutorials
http
Nope... here is the output.
"-- -- Array ( [error] => )"
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 30, 2006 10:56 PM
To: Gary E. Terry
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] Arrays from forms
Gary E. Terry wrote:
>
Gary E. Terry wrote:
If I print them, there's nothing. all three
Here is the same file, in test mode...
$error) {
if ($error == UPLOAD_ERR_OK) {
echo "$error_codes[$error]";
move_uploaded_file(
$_FILES["pictures"]["tmp_name"][$key],
"bikeimages/" .$_FILES["
27;, '$image3', '$status');";
$result = mysql_db_query("$db", $query) or displayErrorQuery ($query);
echo "";
exit;
*/
?>
I get " -- -- " outputted.
-Original Message-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday, N
Gary E. Terry wrote:
Sorry about that, not CC'ing the list...
the values are not always empty, they should always have something in
them...
There should be 3 images uploading. But, I am sure just to make life
interesting,
there will be times when there could be as little as one uploaded.
I
ssage-
From: Chris [mailto:[EMAIL PROTECTED]
Sent: Thursday, November 30, 2006 10:10 PM
To: Gary E. Terry
Cc: PHP DB
Subject: Re: [PHP-DB] Arrays from forms
Gary E. Terry wrote:
> I don't know if we are on the same page here... Maybe we are and I am just
> an idiot.
>
> T
Gary E. Terry wrote:
I don't know if we are on the same page here... Maybe we are and I am just
an idiot.
The fields in my db are image1 image2 and image3.
There are only three fields in the form that is being passed to the
php script. But, on the form they are named "pictures[]".
Here is the
Gary E. Terry wrote:
I have a problem. I have done this before, but can't find the files.
I am using the following function to upload files from a form.
foreach ($_FILES["pictures"]["error"] as $key => $error) {
if ($error == UPLOAD_ERR_OK) {
echo "$error_codes[$error]";
move_
On Wednesday 15 January 2003 03:23, Mignon Hunter wrote:
> Hello list,
>
> I submitted this problem earlier but got no response so I thought I'd
> elaborate.
>
> The code below successfully displays all of the problems from the db.
> Based on what is chosen here, needs to go into another table in t
Hello list,
I submitted this problem earlier but got no response so I thought I'd
elaborate.
The code below successfully displays all of the problems from the db.
Based on what is chosen here, needs to go into another table in the db
along with a customer tracking id.
for($knt = 0;$row = mysql
The problem there is that you've got $a[$year] getting set a bunch of
times. That is busted code. $a[$year] will only contain the LAST value.
Replace that line with this one.
$a[] = array(year=>$year, value=>$value);
OR
$a[$i] = array(year=>$year, value=>$value);
Now $a[0][year] = 20
Perhaps I don't understand what it is you're looking for, but...
$a = array();
for ($i = 0; $i < $maxvalue; $i++)
{
$a[$year] = $value;
}
but this is almost too simple, which probably just means I didn't quite
understand your question.
Marco
--
php|architect - The magazine
On Monday 11 November 2002 21:48, Martin Allan Jensen wrote:
> Okey people, i try again!!
>
> I have a table in a mysql database that holds this:
> +++++--+
>
> | id | maaler | aflaest| vaerdi | pris |
>
> +++++--+
>
>
Why don't you want to do this with SQL?
Ignatius
- Original Message -
From: "Martin Allan Jensen" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, November 11, 2002 2:48 PM
Subject: [PHP-DB] arrays & db
Okey people, i try again!!
Hello, roslyn.
You wrote 23 ñåíòÿáðÿ 2002 ã., 11:51:02:
Try file() function "file -- Reads entire file into an array".
See manual at http://www.php.net/manual/en/function.file.php for
details.
rj> hello,
rj> im not sure of how to create a 1-d array. i want to read a text file and put each
li
On Friday 31 May 2002 03:53, Morten Nielsen wrote:
> Hi,
> I need to store a lot of vaiables (75+) in a MySQL database.
> What is the best way to do this? Should I create a field for each variable
> in the database or is it possible to create an array for a series of
> variables?
You can put ever
Got it now, Thank you
--
Alex Francis
Cameron Design
35, Drumillan Hill
Greenock PA16 0XD
Tel 01475 798106
[EMAIL PROTECTED]
http://www.camerondesign.co.uk
This message is sent in confidence for the addressee only. It may contain
legally privileged information.
Unauthorised recipients are reque
Your $eventdate variable is an array, not a string so you can't just
drop it into an sql query string like that.
If you have separate fields in the db for year, month and day then you
probably want something like:
$query = "insert into ... values ( ... , '$eventdate[0]',
'$eventdate[1]', '$eve
On Tuesday 16 April 2002 04:13, Alex Francis wrote:
> I am trying to insert event dats into a database and to make sure the user
> puts the date in the correct format. I am now trying to collect the
> information from the three fields and insert it into one field.
>
> code as follows: $eventdate =
It would appear that I should check if anyone else has answered a question
first! And get some more sleep!
Sorry!
Ollie
-Original Message-
From: olinux [mailto:[EMAIL PROTECTED]]
Sent: 29 January 2002 20:05
To: [EMAIL PROTECTED]
Subject: RE: [PHP-DB] arrays and email
The other thing
The other thing you could do is populate a string of
emails and add the BCC header to your mail() function.
This way everyone's email will not be seen by all
other recipients.
Check out the docs at www.php.net for this one
a better way to build the string would probably be:
while ($row = mysql_
Hi kevin,
Seems like in your while loop, you are not populating your list array
correctly with all the emails you have.
Try to have a count value and populate the array list accordingly such as:
$count = 0;
while ($row = mysql_fetch_row($result))
{
$real_name = $row[1];
$
access column names after calling OCIFetchStatement, you will need to load
the column names into an array beforehand.
Thanks,
Sean
-Original Message-
From: Stas Trefilov [SMTP:[EMAIL PROTECTED]]
Sent: Tuesday, February 06, 2001 12:00 AM
To: [EMAIL PROTECTED]
Subject: Re:
Hello, "Alarion"!
You wrote:
> I want to loop through a result set, say with ODBC, and
> use the
> "fetch_array" function for each row. Now, What I want is
> a an array of all
> the rows, so I could then access the "Name" column in Row
> 5 like
> $values[NAME][5].
> How would I create an array
see www.php.net/odbc
you want to use odbc_field_name() and odbc_num_fields()
Siggy
- Original Message -
From: "Alarion" <[EMAIL PROTECTED]>
To: "'phobo'" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Monday, February 05, 2001 11:4
2001 5:20 PM
To: Alarion
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP-DB] arrays
Like this:
$blah = "hello";
$miaow[$blah][5] = 3.14;
( is the same as doing $miaow["hello"][5] = 3.14; )
- Siggy
- Original Message -
From: "Alarion" <[EMAIL PROTECTED]>
T
Like this:
$blah = "hello";
$miaow[$blah][5] = 3.14;
( is the same as doing $miaow["hello"][5] = 3.14; )
- Siggy
- Original Message -
From: "Alarion" <[EMAIL PROTECTED]>
To: "'PHP-DB'" <[EMAIL PROTECTED]>
Sent: Monday, February 05, 2001 10:06 AM
Subject: [PHP-DB] arrays
> Hello,
>
31 matches
Mail list logo