Quantcast
Channel: JetBrains Developer Community : Thread List - IntelliJ IDEA Users
Viewing all articles
Browse latest Browse all 5661

PHP and SQL strings with variables

$
0
0

Is there any way to get Intellij to recognize strings as SQL when they contain a variable?

 

For example:

$query = "select * from table where id = 0"; //highlights and is recognized as SQL

 

$query = "select * from table where id = $table_id"; //is not recognized as SQL

 

I hope this is the correct place to ask my question.


Viewing all articles
Browse latest Browse all 5661

Trending Articles