my two tables


Posted on 16th Feb 2014 07:03 pm by admin

table1 : col1 = topicid , col2 = topic

table2 : col1 = sentid, col2 = sentence

Did you know?Explore Trending and Topic pages for more stories like this.
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

md5 is it unique
I know this is most likely one of many simple questions that can be found semi easily. But I'm press

Take info from one coloum and move to another
Hi all,

I have this:
Code: [Select]$array = "SELECT stock_id FROM stocks WHERE stock_

exclude characters from counting?
Hello, I wanted to ask if you have a string like:
Code: $my_s='ASRGREGTGTR----REGREGRE+++RRRRRR..

Using Windows message as a Handle
Hi,

I am writing one of my first multithreaded programs.

In one of the thread,

Count Session and Trigger Events
I am New in PHP, seeking a method to count logged users by counting the sessions or any …, is

sql problems
I am having a small problem with my sql statement. it is inserting into 4 of the fields.

fie

How could I do this?
Ive got a simple lottery game, and am using an sql database to keep track of the numbers bought. But

problem with refreshing
in my site, i have an index page, it has a main div. this main div's content is changing according t

Help with Hyperlink
Hi,

What I am trying to do may be simple, I just can't get it to work. Ok...

I am usin

why preg_match_all does not return the number of matches
My regex looks like

X[^x{4e00}-x{9fa5}]*Y

(where X and Y are two Chinese characters)

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