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

From: Date: Thu, 26 Jul 2012 00:17:31 +0000
Subject: RE: [PHP-DB] Re: Stuck trying to upload and grab file name
References: 1 2 3 4  Groups: php.db 
Request: Send a blank email to php-db+get-48361@lists.php.net to get a copy of this message
Updated code with var_dump; https://gist.github.com/3179506 Brad -----Original Message----- From: lists-php [mailto:replies-lists-d5y3-php@listmail.innovate.net] 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 <nyctelecomm@gmail.com> > To: 'Karl DeSaulniers' <karl@designdrumm.com> > Cc: php-db@lists.php.net > 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

« previous php.db (#48361) next »