my two tables

Posted on 16th Feb 2014 by admin

table1 : col1 = topicid , col2 = topic

table2 : col1 = sentid, col2 = sentence

Code: require_once("includes/connection.php");
$trends = mysql_query("SELECT topicid, topic FROM table1");
$sent = mysql_query("SELECT sentid, sentence FROM table2");
//I need to concatenate every topic in table1
//with every sentence in table2 and create array of sentences.

help me with snippet please.

Other forums