# MYSQL query wildcard, LIKE

**URL:** <https://forum.kirupa.com/t/mysql-query-wildcard-like/311230>\
**Category:** programming\
**Created:** [June 30, 2010, 6:56pm UTC](https://forum.kirupa.com/t/mysql-query-wildcard-like/311230 "2010-06-30T18:56:23Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![natronp](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@natronp](https://forum.kirupa.com/u/natronp)\
**Post date:** [June 30, 2010, 6:56pm UTC](https://forum.kirupa.com/t/mysql-query-wildcard-like/311230/1 "2010-06-30T18:56:23Z")

</div>

trying to accept a string and check the database for similar but this isn’t working:

```auto
$data = mysql_query("SELECT * FROM entries WHERE entryName LIKE '%$title')"
or die(mysql_error());

```

is this enough or do i need more?
