[PHP] Printing MSSQL-Query ERROR description in PHP

2007-06-04 Thread karthi keyan
Hi,
   
  Is there any way to print the reason why the query has been failed, like the 
way MySQL-PHP has mysql_error()?
   
  Regards,
KARTHIK.

   
-
 Download prohibited? No problem! CHAT from any browser, without download.

[PHP] TableName with space

2007-06-04 Thread karthi keyan
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?
   
  Thanks
  Karthik.

   
-
 Download prohibited? No problem! CHAT from any browser, without download.

Re: [PHP] TableName with space

2007-06-05 Thread karthi keyan
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 <[EMAIL PROTECTED]> 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