Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PHP

php variable inside mysql query

String : echo "Hello {$var}";
Sql : $query = "SELECT * FROM `table` ORDER BY `$orderby`";
 
PREVIOUS NEXT
Tagged: #php #variable #mysql #query
ADD COMMENT
Topic
Name
8+2 =