Re: TableName with space

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

 



Hi,
   
  Double qoutes inside a PHP script is not working for spaces. I got the answer. We have to use square bracket from PHP.
   
  $query = "create table [order details]....";

Chris <dmagick@xxxxxxxxx> wrote:
  karthi keyan wrote:
> Hi,
> 
> How can I create a table with spaces "Order details" in MSSQL using PHP?
> I am able to create manually the table name with space by providing the name in Double Quotes. Is there a way out to do this using PHP?

Put double quotes around it in php - rather simple really.

$qry = 'create table "my table name" .... ';

-- 
Postgresql & php tutorials
http://www.designmagick.com/


 			
---------------------------------
 Here?s a new way to find what you're looking for - Yahoo! Answers 

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux