Jump to content

What do these line of code do.


deansaddigh

Recommended Posts

The p probably refers to an aliased table name (FROM mytable p) and the '%$searchKey%' is a mixture of two things: firstly, the value of the $searchKey variable is substituted into the string (if $searchKey is blah then the string is '%blah%'), then that value is used as a parameter for MySQL's LIKE operation. See the LIKE man page.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.