Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Selecting data in php
Old 03-19-2011, 04:04 AM Selecting data in php
Junior Talker

Posts: 1
Name: harry
Trades: 0
hi friendz
I want to get data from two tables

Example
table 1 with fields id,author,profession,country

table 2 with fields id,quote,author,category

So in this way i want to select quote from table 2 whose author and profeesion is specific

$result = mysql_query("SELECT quote FROM table 2 where author="harry" and profession = "Scientist");


Is there any way that i can select like this
jawanda is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 03-19-2011, 03:24 PM Re: Selecting data in php
Super Spam Talker

Posts: 880
Name: Paul W
Trades: 0
This isn't a php question, it's a basic db query question. Start with http://dev.mysql.com/doc/refman/5.1/en/select.html and read on to the Join page.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE


*** New:
Please login or register to view this content. Registration is FREE

Last edited by PaulW; 03-19-2011 at 05:21 PM..
PaulW is online now
Reply With Quote
View Public Profile
 
Reply     « Reply to Selecting data in php
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19544 seconds with 12 queries