Jump to content

[SOLVED] Syntax Help


graham23s

Recommended Posts

Hi Guys,

 

on my forum there is an ability to search previous posts, but the way it is now it only searches 1 table in mysql "forum_posts" but i really need to search "forum_topics_ at the same time, im not sure the correct syntacy in the query to search both at once anyone help me

 

$search_query = "SELECT * FROM `forum_posts` WHERE (`post_body` LIKE '%$keywords%')";

 

thanks guys

 

Graham

Link to comment
https://forums.phpfreaks.com/topic/56873-solved-syntax-help/
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.