select all with variables... problem

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
quince
Forum Newbie
Posts: 15
Joined: Tue Jul 05, 2005 10:17 am

select all with variables... problem

Post by quince »

can I use the select all and the variables like the c.$srtMe?

Code: Select all

$result = mysql_query(&quote;SELECT c.*, b.business_name FROM 

customer_contact_info c, business b WHERE c.$srtMe LIKE'%$question%' AND c.business_id = 

b.business_id ORDER BY $srtMe ASC LIMIT $page_a,$page_b&quote;);
quince
Forum Newbie
Posts: 15
Joined: Tue Jul 05, 2005 10:17 am

Post by quince »

never mind I thought it was the php, but it was the variable from flash.

Thanks anyway!
Post Reply