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

str_replace help
Hey there,

I'm a PHP newb, I'm having troubles with the str_replace function. I want to clean

Searching keywords from array
Hello everyone, Im just wondering if someone could help me with another issue im having. Im still le

Preventing SQL Injection
I have a question about SQL Injection, In some of our code we use this: view plaincopy to clipboa

max function question
Hi All
Ihave a table that holds shipment numbers and dates like this

select * from

$variable = $variable
Hello

Sorry if this is a really simple question but I have run out of ideas. Is there a reall

generating random codes
Hi guys n gals,

I have a requirement to generate 250,000 unique codes...

These codes a

need help modifying script
Hi guys,

I'm fairly new to php and am having a bit of trouble modifying a script.

This

string to currency format
Hi guys...

Actually I chunk out some data from txtfile and one of the data contains amount va

Is there a more efficient way to code this than what I have?
I have three associative arrays.

$combinedSettings
$userSettings
$defaultSettings

More pug propaganda.
http://www.youtube.com/watch?v=8Kkrmubsgf8

The commercial is definitely worth watching pug aw

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