AGREE with you guys,
i was assuming that i could use the $php_var for my query because if i echo $php_var, it returns the string i inputed from the js prompt.
but when i tested it in actual query, it didn't. :(
i dont really understand what happened.
echoing $php_var returns the value from js...