Jump to content

[SOLVED] concat??


thefortrees

Recommended Posts

hi all -

 

If I were to pass values from a form and search for values in the database that are similar to my search form values, what purpose does concat() and % serve in this code?

 

$q = //form value;

$query = "SELECT i.item FROM vcart_item i, vcart_itemblock ib WHERE i.item = ib.item AND (i.title like concat('%', $q, '%') or i.prodid like concat('%', $q, '%')";

Link to comment
https://forums.phpfreaks.com/topic/61417-solved-concat/
Share on other sites

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.