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

insert mysql embeded videos as blobs?
Using TinyMCE my client will be able to embed images and flash videos into large columns of text whi

having a small php error tha deals with the 'foreach'
Last night i was working on a script for a cart and it seemed to working good, until this morning. F

php sessions,logouts & the bloomin back button!
Hi All,

I've got a cms that members can log into. When they logout, the session is destroyed,

Format String help
I have a textbox where a person enters an application number. the application number is 10 characte

Problem assigning value to variable in "IF" function
Does this script makes sense? I am trying to take the value that is set to "authenticat" a

Get relative path from absolute path
How would one go about getting the relative path to a file from its absolute path?

Need help making login verification cleaner...
I use the below to verify user login. I first check the cookie for the id, ip and a unique id. If it

check if value exists
I have googled this for a while and I am getting lots of different results. Is there a standard meth

Sort Alternative/bi-monthly
Hi all,

Am going mad trying to get something to work.

I'm creating a CMS for a magazi

pageination not working right... coping images over 4 pages
Code: <?php //This code will obtain the required page number from the $_GET array. Note that

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