Mysql Performance between go and php7

This line may have a performance impact. But what is worse is that it leads to bad style. Remember Bobby Tables.

Always use proper parameter binding, never use string operations to build SQL.

BTW, I don’t think this

$query = "select * from logErrors where ErrorLogID=$ran";

is recommended in PHP. Just imagine $ran being user input. In PHP parameter binding must be used, too.

1 Like