my two tables


Posted on 16th Feb 2014 07:03 pm 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.

No comments posted yet

Your Answer:

Login to answer
277 Like 36 Dislike
Previous forums Next forums
Other forums

MSSQL/PHP
I am tryint to setup a webapplication developed in PHP, Apache2.0 and SQLServer2000 as backend which

Ignore html and bbcode?
I've created a function to limit the amount of text according to the amount of words.

However

Batch Session SM35 stuck in status 'in Background
Hi Experts,

I am facing a problem with Batch Input session SM35.

The batch se

Displaying data from database into a 2 dimensional table
Good day!

I'm a beginner in PHP and I'm not expecting a full coding for this qestion. I'm jus

URL Rewrite issue
Im created a series of Rewrites and on page checks to make sure the correct url is being called. But

data type in column definition
Hi,
I create a table with column called "Direction of Travel code ".
The travel codes in t

convert static html data into dynamic
hi all

i need to convert a website which has static above 2000 articles into dynamic and add

Problem with an browser game.
Hello,i just joined that great forum and i got php prob,its kinda freaky...anyway i got browser game

Need help to modify php ELSE code
I'm trying to find a way to have the php code display a message if there is no inventory listed in t

newbie question about multiple queries
hi everyone,
I'm sorry to ask such a basic question, but I'm young and trying to learn php on my

Sign up to write
Sign up now if you have flare of writing..
Login   |   Register
Follow Us
Indyaspeak @ Facebook Indyaspeak @ Twitter Indyaspeak @ Pinterest RSS



Play Free Quiz and Win Cash