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

how can we add data from dynamic fields to mysql db in php
i have a script which i found on the internet. i modify that script according to my needs. what is i

Motivational Posters
Hello,

I wonder how can i do them in php. Are there any sample codes that you can show me?

Whats wrong with my query?
I am trying to get this query to show the appropriate ticked vehicle roof height, unless no boxs are

Internal Server Error issues
This has been bothering me for weeks and I've been trying to solve it without asking for help, but e

I got my hosting suspended XD
So I saw this challenge a day or so ago

http://www.programming-challenges.com/pg.php?page=dow

Renaming array keys
The issue: renaming array keys inside a foreach loop.

I'm trying to build a pie chart image w

$variable $variables type question
I need to be able to designate an array element dynamically, so I thought to use a variable variable

image upload script not working with png
The basic process of this php code is to take the submitted file, convert it to a small JPG thumbnai

PHP Blog help
Need help with posting comments in a word press blog? I have a comments page where the comments are

Not connecting to DB using ruby, error:env.c:257:in oci8lib.so: ORA-12154:
Hi All,

I am trying to connect to the database server from the client server using ruby and f

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