Re: [PHP] Join The Team

2008-10-06 Thread Govinda
On Oct 6, 2008, at 12:00 AM, Hemant Patel wrote: Hi...ALL... With Regads, Hemant Patel Namaste Hemant :-) (I as in Uttar Kashi for 7 years.) I am sure you all are quite aware of this, but in India 16,000,000 is written 160,00,000. -Govinda -- PHP General Mailing List (http://www.php.net/

[PHP] Join The Team

2008-10-05 Thread Hemant Patel
Hi...ALL... With Regads, Hemant Patel

Re: [PHP] Join question

2007-12-02 Thread tedd
At 6:24 AM +0800 12/3/07, Crayon Shin Chan wrote: It was also helped by the fact that the OP, who is apparently, renowned for programming in rocks since the time before binary was invented, ought to know list etiquette better than most. That's "world renowned", if you please. :-) But just to

Re: [PHP] Join question

2007-12-02 Thread Crayon Shin Chan
On Sunday 02 December 2007, Daniel Brown wrote: > There are a great deal of highly-intelligent people on this list, so why > not take advantage of that resource? I do, that's why I'm on the list. > So until you've been around enough to truly earn your right to > tell someone far more accomp

Re: [PHP] Join question

2007-12-02 Thread Crayon Shin Chan
On Saturday 01 December 2007, chris smith wrote: > Considering the rest of the off-topic questions that regularly get > asked on this list it's a bit much to single out this one particular > post. I didn't single it out, it just happened to be at the top of the pile at the the time. It was also h

Re: [PHP] Join question

2007-12-01 Thread Daniel Brown
On Nov 30, 2007 11:53 PM, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: > You ought to know by now that there is the php-db list. Even so your > question doesn't belong even there because it has zilch to do with php, > but it is still slightly more appropriate to post there than here. Put on you

Re: [PHP] Join question [solved]

2007-12-01 Thread Daniel Brown
On Nov 30, 2007 10:00 PM, tedd <[EMAIL PROTECTED]> wrote: > At 2:00 PM +1100 11/30/07, Chris wrote: > >>Out of curiosity, what SQL server (and version) are you using? I > >>currently have MySQL 5.0.33 on my dev box and I had no problem with the > >>query I gave you. Perhaps it's a version issue. Th

RE: [PHP] Join question

2007-12-01 Thread tedd
At 11:07 PM -0600 11/30/07, Jay Blanchard wrote: The Oracle of PHP - 6 Degrees of Separation I joined PHP to Oracle, Kevin Bacon and temperature all in one shot. Sounds like an omelette. :-) Tedd, what did you want to know about joins? I think I got it -- at least for the problem that wa

Re: [PHP] Join question

2007-12-01 Thread Jochem Maas
chris smith wrote: > On Dec 1, 2007 3:53 PM, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: >> On Saturday 01 December 2007, tedd wrote: >>> At 10:21 AM +0800 11/30/07, Crayon Shin Chan wrote: On Friday 30 November 2007, tedd wrote: > I'm trying to understand joins, Ask on a database re

Re: [PHP] Join question

2007-12-01 Thread Jochem Maas
Jay Blanchard wrote: > [snip] > If you try you can probably make a connection from php to everything > under > the sun, doesn't mean everything under the sun is an appropriate topic > for this list. > [/snip] > > The Oracle of PHP - 6 Degrees of Separation > > I joined PHP to Oracle, Kevin Bac

Re: [PHP] Join question

2007-12-01 Thread Jochem Maas
Crayon Shin Chan wrote: > On Friday 30 November 2007, Jochem Maas wrote: > ... > > So let me get this straight, only paid up members of the old boys club are > allowed to make off-topic posts? The rest can lump it? if by the rest you mean you, then yes, absolutely, please crawl back under the

Re: [PHP] Join question

2007-11-30 Thread chris smith
On Dec 1, 2007 3:53 PM, Crayon Shin Chan <[EMAIL PROTECTED]> wrote: > On Saturday 01 December 2007, tedd wrote: > > At 10:21 AM +0800 11/30/07, Crayon Shin Chan wrote: > > >On Friday 30 November 2007, tedd wrote: > > >> I'm trying to understand joins, > > > > > >Ask on a database related list. > >

RE: [PHP] Join question

2007-11-30 Thread Andrés Robinet
> -Original Message- > From: tedd [mailto:[EMAIL PROTECTED] > Sent: Saturday, December 01, 2007 2:09 AM > To: Crayon Shin Chan; php-general@lists.php.net > Subject: Re: [PHP] Join question > > At 12:53 PM +0800 12/1/07, Crayon Shin Chan wrote: > >On Saturday 0

Re: [PHP] Join question

2007-11-30 Thread tedd
At 12:53 PM +0800 12/1/07, Crayon Shin Chan wrote: On Saturday 01 December 2007, tedd wrote: At 10:21 AM +0800 11/30/07, Crayon Shin Chan wrote: >On Friday 30 November 2007, tedd wrote: >> I'm trying to understand joins, > >Ask on a database related list. Really? Really. No langua

RE: [PHP] Join question

2007-11-30 Thread Jay Blanchard
[snip] If you try you can probably make a connection from php to everything under the sun, doesn't mean everything under the sun is an appropriate topic for this list. [/snip] The Oracle of PHP - 6 Degrees of Separation I joined PHP to Oracle, Kevin Bacon and temperature all in one shot. Ted

Re: [PHP] Join question

2007-11-30 Thread Crayon Shin Chan
On Friday 30 November 2007, Jochem Maas wrote: > my guess it took less time to search for 'Crayon' in his mail archive > than it took you to write the sentence. Is not so much the actual time taken but rather that he had the free time at all. > aparently Rob wasn't saying this ... but I would,

Re: [PHP] Join question

2007-11-30 Thread Crayon Shin Chan
On Friday 30 November 2007, Robert Cummings wrote: > I'm sorry, allow me to rephrase... in the past 5 months you've made 2 > on-topic useful posts, with the rest either being on-topic for an > off-topic thread, or completely off-topic. I see no point in saying > more, I've made my point. I know y

Re: [PHP] Join question

2007-11-30 Thread Crayon Shin Chan
On Saturday 01 December 2007, tedd wrote: > At 10:21 AM +0800 11/30/07, Crayon Shin Chan wrote: > >On Friday 30 November 2007, tedd wrote: > >> I'm trying to understand joins, > > > >Ask on a database related list. > Really? Really. > No language lives in a vacuum, mate. Especially, a web langu

Re: [PHP] Join question

2007-11-30 Thread tedd
At 10:21 AM +0800 11/30/07, Crayon Shin Chan wrote: On Friday 30 November 2007, tedd wrote: I'm trying to understand joins, Ask on a database related list. -- Crayon Really? No language lives in a vacuum, mate. Especially, a web language. IMO, one of the major attributes that make PHP tr

Re: [PHP] Join question [solved]

2007-11-30 Thread tedd
At 9:52 AM -0500 11/30/07, Daniel Brown wrote: On Nov 29, 2007 11:17 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: Rob, The version difference is probably right on the nose. If I remember correctly, you couldn't do that in the long-popular 3.23, which *gasp!* is still used by some web

Re: [PHP] Join question [solved]

2007-11-30 Thread tedd
At 2:00 PM +1100 11/30/07, Chris wrote: Out of curiosity, what SQL server (and version) are you using? I currently have MySQL 5.0.33 on my dev box and I had no problem with the query I gave you. Perhaps it's a version issue. There really shouldn't be a problem updating a table that also occurs in

Re: [PHP] Join question

2007-11-30 Thread Daniel Brown
That it is, Steve. That it is. And because of the occasion, I feel justified in celebrating by top-posting. TFGIF! On Nov 30, 2007 12:58 PM, Steve Edberg <[EMAIL PROTECTED]> wrote: > At 10:30 AM -0500 11/30/07, Daniel Brown wrote: > >On Nov 30, 2007 10:22 AM, Jochem Maas <[EMAIL PRO

Re: [PHP] Join question

2007-11-30 Thread Steve Edberg
At 10:30 AM -0500 11/30/07, Daniel Brown wrote: On Nov 30, 2007 10:22 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: Daniel Brown wrote: > I was tempted to flame Tedd just because he's Tedd. ;-P lol. but then the guy was programming Rocks(tm) way before I was born, that has to count for so

Re: [PHP] Join question

2007-11-30 Thread Jochem Maas
Daniel Brown wrote: > On Nov 30, 2007 10:22 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: >> Daniel Brown wrote: >>> I was tempted to flame Tedd just because he's Tedd. ;-P >> lol. but then the guy was programming Rocks(tm) way before I was >> born, that has to count for something :-) > > >

Re: [PHP] Join question

2007-11-30 Thread Daniel Brown
On Nov 30, 2007 10:22 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Daniel Brown wrote: > > I was tempted to flame Tedd just because he's Tedd. ;-P > > lol. but then the guy was programming Rocks(tm) way before I was > born, that has to count for something :-) Please keep all replies on t

Re: [PHP] Join question [solved]

2007-11-30 Thread Wolf
tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I found why the JOIN didn't work for me in this instance, which was I > needed to create a third table and JOIN what I needed in that table > from the other two. > > My problem was that I was trying to alter one of the tables in the > JOIN.

Re: [PHP] Join question [solved]

2007-11-30 Thread Daniel Brown
On Nov 29, 2007 11:17 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > On Fri, 2007-11-30 at 14:00 +1100, Chris wrote: > > > Out of curiosity, what SQL server (and version) are you using? I > > > currently have MySQL 5.0.33 on my dev box and I had no problem with the > > > query I gave you. Perhaps

Re: [PHP] Join question

2007-11-30 Thread Daniel Brown
On Nov 30, 2007 8:08 AM, Jochem Maas <[EMAIL PROTECTED]> wrote: > Crayon Shin Chan wrote: > > On Friday 30 November 2007, Robert Cummings wrote: > > > >> That's an amusing statement. I took a peek back in time and noticed > >> that in the past 5 months you've only made two on-topic useful posts to

Re: [PHP] Join question

2007-11-30 Thread Jochem Maas
Crayon Shin Chan wrote: > On Friday 30 November 2007, Robert Cummings wrote: > >> That's an amusing statement. I took a peek back in time and noticed >> that in the past 5 months you've only made two on-topic useful posts to >> the PHP General list-- and they were both for the same thread. > > If

Re: [PHP] Join question

2007-11-29 Thread Robert Cummings
On Fri, 2007-11-30 at 13:49 +0800, Crayon Shin Chan wrote: > On Friday 30 November 2007, Robert Cummings wrote: > > > Or are you saying that one needs to make a lot of on-topic posts to > > > build up credit in order to be able to make off-topic posts? > > > > No, I'm merely pointing out the hypocr

Re: [PHP] Join question

2007-11-29 Thread Crayon Shin Chan
On Friday 30 November 2007, Robert Cummings wrote: > > Or are you saying that one needs to make a lot of on-topic posts to > > build up credit in order to be able to make off-topic posts? > > No, I'm merely pointing out the hypocrisy. That would only be true if I had been making off-topic posts. B

Re: [PHP] Join question [solved]

2007-11-29 Thread Robert Cummings
On Fri, 2007-11-30 at 14:00 +1100, Chris wrote: > > Out of curiosity, what SQL server (and version) are you using? I > > currently have MySQL 5.0.33 on my dev box and I had no problem with the > > query I gave you. Perhaps it's a version issue. There really shouldn't > > be a problem updating a tab

Re: [PHP] Join question

2007-11-29 Thread Robert Cummings
On Fri, 2007-11-30 at 11:00 +0800, Crayon Shin Chan wrote: > On Friday 30 November 2007, Robert Cummings wrote: > > > That's an amusing statement. I took a peek back in time and noticed > > that in the past 5 months you've only made two on-topic useful posts to > > the PHP General list-- and they

Re: [PHP] Join question [solved]

2007-11-29 Thread Chris
Out of curiosity, what SQL server (and version) are you using? I currently have MySQL 5.0.33 on my dev box and I had no problem with the query I gave you. Perhaps it's a version issue. There really shouldn't be a problem updating a table that also occurs in the select query since the select quer

Re: [PHP] Join question

2007-11-29 Thread Crayon Shin Chan
On Friday 30 November 2007, Robert Cummings wrote: > That's an amusing statement. I took a peek back in time and noticed > that in the past 5 months you've only made two on-topic useful posts to > the PHP General list-- and they were both for the same thread. If you have that much free time on yo

Re: [PHP] Join question

2007-11-29 Thread Robert Cummings
On Fri, 2007-11-30 at 10:21 +0800, Crayon Shin Chan wrote: > On Friday 30 November 2007, tedd wrote: > > I'm trying to understand joins, > > Ask on a database related list. That's an amusing statement. I took a peek back in time and noticed that in the past 5 months you've only made two on-topic

Re: [PHP] Join question

2007-11-29 Thread Crayon Shin Chan
On Friday 30 November 2007, tedd wrote: > I'm trying to understand joins, Ask on a database related list. -- Crayon -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Join question [solved]

2007-11-29 Thread Robert Cummings
On Thu, 2007-11-29 at 18:43 -0500, tedd wrote: > Hi gang: > > I found why the JOIN didn't work for me in this instance, which was I > needed to create a third table and JOIN what I needed in that table > from the other two. > > My problem was that I was trying to alter one of the tables in the

Re: [PHP] Join question [solved]

2007-11-29 Thread tedd
Hi gang: I found why the JOIN didn't work for me in this instance, which was I needed to create a third table and JOIN what I needed in that table from the other two. My problem was that I was trying to alter one of the tables in the JOIN. While that might be possible it didn't appear so in

Re: [PHP] Join question

2007-11-29 Thread tedd
At 4:11 PM -0500 11/29/07, Robert Cummings wrote: Grep? Loop? A single query will suffice. Also, he doesn't mention wanting to clobber the passwords in table1 when the username does already exist. Cheers, Rob. Table1 passwords and logins are not populated. I want to take those appearing in Ta

Re: [PHP] Join question

2007-11-29 Thread Robert Cummings
On Thu, 2007-11-29 at 15:47 -0500, Wolf wrote: > tedd <[EMAIL PROTECTED]> wrote: > > Hi gang: > > > > I'm trying to understand joins, > > > > Here's the situation. I have two tables (user1, user2) in one database: > > > > The common field between the two tables is "username". I want to tak

Re: [PHP] Join question

2007-11-29 Thread Daniel Brown
On Nov 29, 2007 3:41 PM, tedd <[EMAIL PROTECTED]> wrote: > Hi gang: Hi, Tedd. > PS: Side note -- will safe_mode ON cause problems with this? Negative. I can't see any reason to even think so. All safe_mode does is check the UID/GID of the script to make sure it matches that of the targ

Re: [PHP] Join question

2007-11-29 Thread Robert Cummings
On Thu, 2007-11-29 at 15:41 -0500, tedd wrote: > Hi gang: > > I'm trying to understand joins, > > Here's the situation. I have two tables (user1, user2) in one database: > > The common field between the two tables is "username". I want to take > fields "login" and "password" from user2 and popu

Re: [PHP] Join question

2007-11-29 Thread Wolf
tedd <[EMAIL PROTECTED]> wrote: > Hi gang: > > I'm trying to understand joins, > > Here's the situation. I have two tables (user1, user2) in one database: > > The common field between the two tables is "username". I want to take > fields "login" and "password" from user2 and populate the

[PHP] Join question

2007-11-29 Thread tedd
Hi gang: I'm trying to understand joins, Here's the situation. I have two tables (user1, user2) in one database: The common field between the two tables is "username". I want to take fields "login" and "password" from user2 and populate the same fields in user1. Currently, the table user1 h

Re: [PHP] Join table with clashing fieldnames

2006-11-08 Thread tedd
At 1:22 PM + 11/8/06, Kris Leech wrote: I have an SQL query which has a simple join, this works and is fine the fields from the secondary table are added to the returned array. But what happens if I add another JOIN to a table which has fields which are the same name? Is there any way to ha

Re: [PHP] Join table with clashing fieldnames

2006-11-08 Thread clive
clive wrote: 1. This is a SQL question and not a php one. 2. select a.name as aname, b.name as bname, c.name as cname where a.id=b.id and a.id=c.id from a,b,c oops beer gone to my head, the from should come before the where as most of you I'm sure know. -- PHP General Mailing List (http://

Re: [PHP] Join table with clashing fieldnames

2006-11-08 Thread clive
Kris Leech wrote: I have an SQL query which has a simple join, this works and is fine the fields from the secondary table are added to the returned array. But what happens if I add another JOIN to a table which has fields which are the same name? Is there any way to have PHP prefix the key's (

Re: [PHP] Join table with clashing fieldnames

2006-11-08 Thread Chris Boget
I have an SQL query which has a simple join, this works and is fine the fields from the secondary table are added to the returned array. But what happens if I add another JOIN to a table which has fields which are the same name? Is there any way to have PHP prefix the key's (fieldnames) of the

[PHP] Join table with clashing fieldnames

2006-11-08 Thread Kris Leech
I have an SQL query which has a simple join, this works and is fine the fields from the secondary table are added to the returned array. But what happens if I add another JOIN to a table which has fields which are the same name? Is there any way to have PHP prefix the key's (fieldnames) of the

Re: [PHP] Join - Two Columns with the same name

2006-04-13 Thread Warren Vail
Several methods are supported by mysql, here is the one I like, select * from table1 a, table2 b where a.col1 = b.col1 In this case the a and b are "aliases" of table1 and table2 respectively and the notation a.col1 and b.col1 refers to column "col1" in table1 and table2 respectively. You can

Re: [PHP] Join - Two Columns with the same name

2006-04-13 Thread Jochem Maas
Kevin Murphy wrote: This is probably basic, but I can't seem to find the answer. Is there a way to specify in a join a specific column when the two tables have columns with the same name? Something like: $row['table1.id'] vs $row['table2.id'] yes. http://dev.mysql.com/doc/ is a good plac

[PHP] Join - Two Columns with the same name

2006-04-13 Thread Kevin Murphy
This is probably basic, but I can't seem to find the answer. Is there a way to specify in a join a specific column when the two tables have columns with the same name? Something like: $row['table1.id'] vs $row['table2.id'] -- Kevin Murphy Webmaster: Information and Marketing Services Wester

Re: [PHP] Join PHPExperts

2004-11-10 Thread Robby Russell
On Thu, 2004-11-11 at 11:03 +0600, Hasin Hayder wrote: > Hi all, > We starts a great user forum for PHP users. We gurantee the urgent > solution of your problem regarding PHP, MySQL and It's extensions. > Visit our group and be a proud member of our group > > visit: http://groups.yahoo.com/group/p

Re: [PHP] Join PHPExperts

2004-11-10 Thread Jason Wong
On Thursday 11 November 2004 05:03, Hasin Hayder wrote: > We starts a great user forum for PHP users. We gurantee the urgent > solution of your problem regarding PHP, MySQL and It's extensions. > Visit our group and be a proud member of our group > > visit: http://groups.yahoo.com/group/phpexperts

[PHP] Join PHPExperts

2004-11-10 Thread Hasin Hayder
Hi all, We starts a great user forum for PHP users. We gurantee the urgent solution of your problem regarding PHP, MySQL and It's extensions. Visit our group and be a proud member of our group visit: http://groups.yahoo.com/group/phpexperts Thank you all --Evelin -- PHP General Mailing List (h

[PHP] Join

2003-03-09 Thread Philip J. Newman
-- Philip J. Newman. Head Developer [EMAIL PROTECTED] +64 (9) 576 9491 +64 021-048-3999 -- Friends are like stars You can't allways see them, but they are always there. -- Websites: PhilipNZ.com - Design. http://www.philipnz.com/ [EMAIL PROTECTED] Philip's Domain // Internet Proje

[PHP] JOIN for FREE ... Learn and Earn

2003-01-20 Thread Charles Cedeno
Hello: My name is Charles Cedeno. I am now focusing in one online opportunity.I have tried several of these opportunities full of hype promising us thousands of dollars every month. I would get all excited and run to my family and friends with another "Great Money Maker ". It is a sad fac

Re: [PHP] join() , can do that fast?

2002-10-07 Thread Philipp Lutz
> > > > -Original Message----- > > > From: lallous [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, October 07, 2002 6:09 AM > > > To: [EMAIL PROTECTED] > > > Subject: [PHP] join() , can do that fast? > > > > > > Hello, > > >

Re: [PHP] join() , can do that fast?

2002-10-07 Thread lallous
Thanks John, sorry I didn't see the new join()'s parameters you provided, I only noticed the new '%s' . Elias, -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] join() , can do that fast?

2002-10-07 Thread Erwin
Lallous wrote: > John, what you said would simply produce: >var x = ['str1,str2,str3'] > and not as I want: > var x = ['str1','str2','str3'] Elias, did you actually tried that? Because it does produce what you want... produces: x=['str1','str2','str3'] Grtz Erwin -- PHP General Mai

Re: [PHP] join() , can do that fast?

2002-10-07 Thread lallous
:002101c26de2$982bf7d0$7c02a8c0@coconut... > > > > -Original Message- > > From: lallous [mailto:[EMAIL PROTECTED]] > > Sent: Monday, October 07, 2002 6:09 AM > > To: [EMAIL PROTECTED] > > Subject: [PHP] join() , can do that fast? > > > >

RE: [PHP] join() , can do that fast?

2002-10-07 Thread John W. Holmes
> -Original Message- > From: lallous [mailto:[EMAIL PROTECTED]] > Sent: Monday, October 07, 2002 6:09 AM > To: [EMAIL PROTECTED] > Subject: [PHP] join() , can do that fast? > > Hello, > > > I have: > $x = array('str1','str2',

[PHP] join() , can do that fast?

2002-10-07 Thread lallous
Hello, I have: $x = array('str1','str2','str3'); I want to convert that array to a valid javascript syntax as: var x = ['str1','str2','str3'] I can do this in PHP: echo sprintf("x=[%s]", join(',', $x)); but that would produce: x = [str1, str2, str3] is there is a fast way (other than doing

[PHP] Join in MySQL-select doesn't work

2002-09-18 Thread Henning
Hello I'm using PHP4 and MySQL on Apache webserver. I have a table valled "liste" with names of some people, and a table called "postnummer" with zip-codes and citynames. My select should join the adress and zip from one table with the cityname from the other table. But my join-line does not wor

Re: [PHP] Join - problem

2002-09-18 Thread Henning
mysql causeing the errors > > $result = mysql_query($query) or die(mysql_error()); > - Original Message - > From: "Henning" <[EMAIL PROTECTED]> > To: <[EMAIL PROTECTED]> > Sent: Wednesday, September 18, 2002 5:12 PM > Subject: [PHP] Join - problem >

Re: [PHP] Join - problem

2002-09-18 Thread 1LT John W. Holmes
Don't include the ; in your query, for one thing. ---John Holmes... - Original Message - From: "John Wards" <[EMAIL PROTECTED]> To: "Henning" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Wednesday, September 18, 2002 11:26 AM Subject:

Re: [PHP] Join - problem

2002-09-18 Thread John Wards
ember 18, 2002 5:12 PM Subject: [PHP] Join - problem > Hello > I'm using PHP4 and MySQL on Apache webserver. > I have a table valled "liste" with names of some people, and a table > called "postnummer" with zip-codes and citynames. > My select should join the ad

[PHP] Join - problem

2002-09-18 Thread Henning
Hello I'm using PHP4 and MySQL on Apache webserver. I have a table valled "liste" with names of some people, and a table called "postnummer" with zip-codes and citynames. My select should join the adress and zip from one table with the cityname from the other table. But my join-line does not work.

[PHP] SQL / PHP Join issue. - SOLVED

2002-01-22 Thread Michael O'Neal
Hi all. Never mind my previous post. I fixed my SQL statements by using "AS" statements. For example: SELECT calendar.ID AS calendar_ID,calendar.Calendar_Title AS Calendar_Title,calendar.Add_To_Scroller AS calendar_Add_To_Scroller... That worked like I wanted it to. Thanks! mto -- Mich

Re: [PHP] SQL / PHP Join issue.

2002-01-22 Thread clint
You need to either alias the columns i.e. career.id as careerid or rename your columns i.e. change the id to careerid & calendarid. The second option would be best because that way your columns are descriptive. HTH Clint -- Original Message -- From: Mich

[PHP] SQL / PHP Join issue.

2002-01-22 Thread Michael O'Neal
Hi, I'm having a little trouble with this join statement I'm working on. What I *think* is happening is that PHP is getting confused with the "ID" field that is the same for the three different tables. When I go through the result set, you can see that the field "ID" gets used a couple of times

Re: [PHP] mySQL / PHP Join Question

2001-09-09 Thread David Robley
On Sun, 9 Sep 2001 13:34, Dana Holt wrote: > I have a query that uses a LEFT JOIN, but the two tables have some > columns with the same name. How can I tell the columns from each table > apart? It seems that the "joined" table overwrites the values from the > other table. > > Anyone know? > > Tha

RE: [PHP] mySQL / PHP Join Question

2001-09-08 Thread Don Read
On 09-Sep-2001 Dana Holt wrote: > > I have a query that uses a LEFT JOIN, but the two tables have some columns > with the same name. How can I tell the columns from each table apart? It > seems that the "joined" table overwrites the values from the other table. > If the column is part of the j

[PHP] mySQL / PHP Join Question

2001-09-08 Thread Dana Holt
I have a query that uses a LEFT JOIN, but the two tables have some columns with the same name. How can I tell the columns from each table apart? It seems that the "joined" table overwrites the values from the other table. Anyone know? Thanks. -- Dana Holt / [EMAIL PROTECTED] -- PHP Genera

[PHP] JOIN

2001-08-30 Thread Jeremy Morano
Sorry everone but I 'm having a hard time with joins How do I add this clause: users.uid = selection.user_uid from table selection to this query: $sql = "SELECT users.uid, users.username FROM users LEFT JOIN picks ON users.uid = picks.user_id WHERE picks.user_id IS NULL Thank You. --

Re: [PHP] Join causing Error?

2001-02-25 Thread Chris Adams
On 25 Feb 2001 00:20:37 -0800, Keith Spiller <[EMAIL PROTECTED]> wrote: > Line 284$result =3D mysql_query("SELECT q.questid, q.question, = Try changing this to something like $result = mysql_query("SELECT ...") or die(mysql_error()); and seeing what error is being returned by MySQL.

Re: [PHP] Join causing Error?

2001-02-25 Thread CC Zona
In article <030601c09f05$2b9e6e70$[EMAIL PROTECTED]>, [EMAIL PROTECTED] ("Keith Spiller") wrote: > Can anyone tell me why this: > Line 282mysql select db("centraldb",$db); > Line 283$qorder++; > Line 284$result = mysql query("SELECT q.questid, q.question, q.answer, > q.qord

[PHP] Join causing Error?

2001-02-25 Thread Keith Spiller
Can anyone tell me why this: Line 282mysql_select_db("centraldb",$db); Line 283$qorder++; Line 284$result = mysql_query("SELECT q.questid, q.question, q.answer, q.qorder, q.depart, q.catid, q.active, q.global, q.adate, q.author, q.authoremail, q.askemail, c.