PHP:
prepare(\"SELECT * FROM `users`\"); $stmt->execute(); $result = $stmt->get_result(); //
You can utilize ARGV:
v=123test awk 'BEGIN {print ARGV[1]}' "$v"
Note that if you are going to continue into the body, you will need to adjust ARGC:
awk 'BEGIN {ARGC--} {print ARGV[2], $0}' file "$v"