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

"Brad" <[email protected]>
Newsgroups gmane.comp.php.database
Message-ID <00e601cd6ac4$0e12f4b0$2a38de10$@com>
Updated code with var_dump;
https://gist.github.com/3179506

Brad


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



------------ Original Message ------------
> Date: Wednesday, July 25, 2012 07:33:09 PM -0400
> From: Brad <[email protected]>
> To: 'Karl DeSaulniers' <[email protected]>
> Cc: [email protected]
> Subject: RE: [PHP-DB] 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.