php - Using raw MYSQL queries in symfony -


i'm working symfony instead of using doctrine use raw mysql queries.

$query1 = "select sport_id coach id = $id"; $statement1 = $connection->query($query1); $statement1->execute(); $sport_id = $statement1->fetch(); 

for above query gives error "notice: array string conversion 500 internal server error - contexterrorexception"

can please explain wrong this? i'm beginner in symfony


Comments

Popular posts from this blog

c++ - llvm function pass ReplaceInstWithInst malloc -

Cross-Compiling Linux Kernel for Raspberry Pi - ${CCPREFIX}gcc -v does not work -

java.lang.NoClassDefFoundError When Creating New Android Project -