[SOLVED] adding a percent sign into the variable
Posted: Fri Mar 11, 2005 8:54 pm
hope anyone can help me...
i have submitted a data using post and i just want to add a percent sign into that variable, how can i add that to the query? thanks! below are my code..
how would i do that adding the percent sign in the end?
thanks!
i have submitted a data using post and i just want to add a percent sign into that variable, how can i add that to the query? thanks! below are my code..
Code: Select all
$date1 = $_POSTї'date1'];
// i just want to add a percent sign at the end of the value of date 1
so that i can do this query...
select * from tbl where userName = '$select' and date like '$date1'
//which would appear something like this one:
select * from tbl where userName = 'name' and date like '03-05-05%'
//where name and 03-05-05 are submitted from a formthanks!