Ho creato una query per estrarre dei post dal forum phpbb, in questa query:
Codice PHP:
$query = "SELECT t.topic_id, t.topic_replies, t.topic_title, t.topic_last_post_id, t.forum_id, p.post_id, p.post_time, p.post_text
FROM $table_topics t, $table_forums f, $table_posts p
WHERE t.topic_id = p.topic_id AND
f.forum_id = t.forum_id AND
t.topic_status <> 2 AND
p.post_id = t.topic_last_post_id AND topic_title LIKE '[NEWS]_'
ORDER BY p.post_id DESC LIMIT $topicnumber";
$result = mysql_query($query) or die("Query failed");
vorrei estrarre solo i topic che nel titolo hanno la parola "[NEWS]" e poi il titolo della news, il problema è che pur usando topic_title LIKE '[NEWS]_' non mi estrae nessun titolo, quale può essere il motivo?
Grazie