PHP variables inside SQL results? -


so, if say

$bike = 'schwinn'; 

can have select statement returns your bike $bike. , have echo $statement your bike schwinn. without additional parsing?

by using concat function in mysql can:

select concat('your bike ', bike, '.') 'bike' bicycles bike = 'schwinn' 

demo


Comments

Popular posts from this blog

Using 'OR' and 'AND' in SQL Server -

python - Finding intersection between ellipse and a line -

php - Laravel 4, Basset, Less - preg_match compilation failed -