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

java - How to Configure JAXRS and Spring With Annotations -

visual studio - TFS will not accept changes I've made to a Java project -

php - Create image in codeigniter on the fly -