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

Format timestamp from mysql
When I tried this:
Code: date("m/d/Y H:i A", $row['timestamp'])
I got 12/31/1969 18:

Any help with my email script?
I have an email script, I have not tested it, although someone tested it for me and said it worked f

Uploading files/images via forms
Hey all, I am building a database for work that will contain some minor data on plant species along

onclick problem
I have <input type="text" name="message">
<a href=page2.

PHP - HTML
Could anyone give me some GOOD sample links for php - html email tutorial.

Thanks!

str_replace help
I am thinking str_replace is my only option to filter outputs from my database to convert them to sa

Checking if a process is running (problems including psapi.dll i think...)
Ok, so all I'm trying to do is check if a program is running...

I've found out that I nee

Running a cron job through PHP/Apache?!
Hello all,
I have a PHP script which makes a cron file from user input. When i try to run the cro

Array question
Does anyone know how to create a program that takes the $ amount for 8 different departments and gi

SCO Unix
I know this might not be the place to ask, but, can anyone tell me if SCO Unix comes with PHP built

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