RE: Re: Stuck trying to upload and grab file name

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Updated code with var_dump;
https://gist.github.com/3179506

Brad


-----Original Message-----
From: lists-php [mailto:replies-lists-d5y3-php@xxxxxxxxxxxxxxxxxxxxx] 
Sent: Wednesday, July 25, 2012 7:55 PM
To: Brad
Subject: RE:  Re: Stuck trying to upload and grab file name



------------ Original Message ------------
> Date: Wednesday, July 25, 2012 07:33:09 PM -0400
> From: Brad <nyctelecomm@xxxxxxxxx>
> To: 'Karl DeSaulniers' <karl@xxxxxxxxxxxxxxx>
> Cc: php-db@xxxxxxxxxxxxx
> Subject: RE:  Re: Stuck trying to upload and grab file name
>
> 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 
> column name.
> 
> Brad
> 

Echo the statement out (after the variable substitutions have taken place),
and then work with that at the mysql command line. You'll likely figure out
the issue much faster (it might even be obvious from what gets displayed).

   - Richard

 


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux