I execute a SQL SERVER statement from PHP, and I need you to have a line break, since the SQL SERVER system requires them.
PHP code:
$QueryTable = "IF NOT EXISTS (SELECT * FROM sysobjects WHERE
name='$NombreTabla' AND xtype='U') CREATE TABLE $NombreTabla ( $Columnas ) GO";
The SQL SERVER requires that I insert line breaks once the conditional is finished, and once the statement that creates the table is finished.
This is what I'm looking for:
IF NOT EXISTS (SELECT * FROM sysobjects WHERE name='$NombreTabla'
AND xtype='U')
CREATE TABLE $NombreTabla ( $Columnas )
GO"
What would be the correct way to write my PHP code? Thank you very much, and sorry for the editorial.