Home Download Buy Blog Forum Support

Comment keyboard shortcut in PHP SQL string

Comment keyboard shortcut in PHP SQL string

Postby firejdl on Wed Aug 17, 2011 3:23 am

In a PHP file, if I have code like this:
Code: Select all
      $cmd = new DBCommand('SELECT * FROM `Group`');
      $results = $cmd->query();


and I select part of the SQL string and press Ctrl+/ to comment the line out, instead of the regular PHP comment (//) I get an SQL comment (--). Oddly, if I make a selection that starts in the SQL string and ends outside of it, then press Ctrl+/, nothing happens.
firejdl
 
Posts: 9
Joined: Thu Feb 03, 2011 3:35 am

Return to General Discussion

Who is online

Users browsing this forum: overdriven and 18 guests