+ 1
What does % stand for in the following scenario?
I have a php script thatâs job is to edit a database entry. Within the code a variable is defined as follows- $client= "%".$webdata['searchcolumnclient']."%"; $webdata is an array. Why is there a modulo being concatenated on either side? I understand this might not be enough information, if not please let me know and Iâll try explain further but Iâd really appreciate no snide remarks. Thanks :)
3 Answers
+ 2
This looks like a database query with LIKE operator.
+ 1
Example: Select * from clients where name like â%arra%â. This will return all the clients for witch the name contains arra no metter the positon
+ 1
thanks for the name! ive been able to google search and find information on it now :)