php - Mysql query - using like <something> and <something='1'> with limit -


I'm being stumped on this problem, and I do not seem to understand this, hope someone heads here Expect to make or tail on it.

When I use the following for the query of my database:

  $ q = "SELECT * from the item (searchable = '1' and the title ' Items are shown in the ways they want to. But when I end up with  limits 10, 5  Add to: 

  $ q = "SELECT * from the item (searchable = '1' and title '%' $ _ Srch."% ') Range 10, 5 ";  

The query does not show anything I can think of everything I have tried, but I will remember something LIMIT 10, 5

itemprop = "text">

/ code> you're telling that you want That the database should start displaying from the 10th row and display 5 rows. - It's possible that you do not really have enough rows

Try something like, LIMIT 0, 5 - It will display 5 lines before startup, but 10, 5 Only work when you have more than 10 rows.

Read more here:


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

java - Gradle dependencies: compile project by relative path -

ruby on rails - Object doesn't support #inspect when used with .include -