RE: [PHP-DB] Stuck trying to upload and grab file name

2012-07-25 Thread Brad
uis [mailto:legnakar...@gmail.com] Sent: Wednesday, July 25, 2012 8:17 PM To: Brad Cc: Karl DeSaulniers; php-db@lists.php.net Subject: Re: [PHP-DB] Stuck trying to upload and grab file name The table ñame need The ñame var not tmp_name tmp_name contains / bar El miércoles, 25 de julio

Re: [PHP-DB] Stuck trying to upload and grab file name

2012-07-25 Thread Roberto Carlos Garcia Luis
The table ñame need The ñame var not tmp_name tmp_name contains / bar El miércoles, 25 de julio de 2012, Brad escribió: > Switching it to -> ALTER TABLE `{$memberID}` ADD {$tmp_name} VARCHAR(60); > produces the same error. > For the record $tmp_name is just gibberish and should not be the final

Re: [PHP-DB] Stuck trying to upload and grab file name

2012-07-25 Thread Karl DeSaulniers
On Jul 25, 2012, at 5:21 AM, Tamara Temple wrote: Brad wrote: Here is where everything stands.. L http://pastie.org/4317155 I feel strange bottom posting, somehow, BUT THAT'S THE RULE You have never actually shown what your SQL statement is, because: line 33: echo '$sql'; This will NOT

Re: [PHP-DB] Stuck trying to upload and grab file name

2012-07-25 Thread Matijn Woudt
On Wed, Jul 25, 2012 at 12:21 PM, Tamara Temple wrote: > Brad wrote: >> Here is where everything stands.. L >> >> http://pastie.org/4317155 > > I feel strange bottom posting, somehow, BUT THAT'S THE RULE It makes each individual message readable in a human readable order. That's why. > > You

Re: [PHP-DB] Stuck trying to upload and grab file name

2012-07-25 Thread Tamara Temple
Brad wrote: > Here is where everything stands.. L > > http://pastie.org/4317155 I feel strange bottom posting, somehow, BUT THAT'S THE RULE You have never actually shown what your SQL statement is, because: line 33: echo '$sql'; This will NOT interpolate the sql string. This is why you keep

RE: [PHP-DB] Stuck trying to upload and grab file name

2012-07-24 Thread Brad
Here is where everything stands.. L http://pastie.org/4317155 From: Roberto Carlos Garcia Luis [mailto:legnakar...@gmail.com] Sent: Tuesday, July 24, 2012 5:23 AM To: Brad Cc: php-db@lists.php.net Subject: Re: [PHP-DB] Stuck trying to upload and grab file name Use $_FILES

RE: [PHP-DB] Stuck trying to upload and grab file name

2012-07-24 Thread Brad
ined index: tmp_name in /home/nyctelecomm.com/www/mail/import.php on line 20 Notice: Undefined index: tmp_name in /home/nyctelecomm.com/www/mail/import.php on line 24 $sqlYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use nea

Re: [PHP-DB] Stuck trying to upload and grab file name

2012-07-24 Thread Roberto Carlos Garcia Luis
[mailto:legnakar...@gmail.com 'legnakar...@gmail.com');>] > > *Sent:* Tuesday, July 24, 2012 5:12 AM > *To:* Brad > *Cc:* php-db@lists.php.net 'php-db@lists.php.net');> > *Subject:* Re: [PHP-DB] Stuck trying to upload and grab file name > > ** **

RE: [PHP-DB] Stuck trying to upload and grab file name

2012-07-24 Thread Brad
line 24 $sqlYou have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near ''\' LINES TERMINATED BY "\r\n" IGNORE 1 LINES' at line 3 From: Roberto Carlos Garcia Luis [mailto:legnakar...@gmail.com

Re: [PHP-DB] Stuck trying to upload and grab file name

2012-07-24 Thread Roberto Carlos Garcia Luis
AM > *To:* Brad > *Cc:* php-db@lists.php.net 'php-db@lists.php.net');> > *Subject:* Re: [PHP-DB] Stuck trying to upload and grab file name > > ** ** > > You need to use te tmp_name ... The plain text file is in path indicated > by The string... > >

RE: [PHP-DB] Stuck trying to upload and grab file name

2012-07-24 Thread Brad
} array(5) { ["name"]=> string(14) "emailsTest.txt" ["type"]=> string(10) "text/plain" ["tmp_name"]=> string(14) "/tmp/php98AolN" ["error"]=> int(0) ["size"]=> int(61) } From: Roberto Carlos G

RE: [PHP-DB] Stuck trying to upload and grab file name

2012-07-24 Thread Brad
The tmp_file is just gibberish. I ‘truly’ do not want that as the table name. From: Roberto Carlos Garcia Luis [mailto:legnakar...@gmail.com] Sent: Tuesday, July 24, 2012 4:26 AM To: Brad Cc: php-db@lists.php.net Subject: Re: [PHP-DB] Stuck trying to upload and grab file name

Re: [PHP-DB] Stuck trying to upload and grab file name

2012-07-24 Thread Roberto Carlos Garcia Luis
Pelase, print The SQL var and show here The result. El martes, 24 de julio de 2012, Roberto Carlos Garcia Luis escribió: > You need to use te tmp_name ... The plain text file is in path indicated > by The string... > > Regards, > > El martes, 24 de julio de 2012, Brad escribió: > > I am making a

Re: [PHP-DB] Stuck trying to upload and grab file name

2012-07-24 Thread Roberto Carlos Garcia Luis
You need to use te tmp_name ... The plain text file is in path indicated by The string... Regards, El martes, 24 de julio de 2012, Brad escribió: > I am making a function that uploads a txt file in csv format and the grabs > uploaded file name and the memberID from the sessions login and names t