Re: Search MySQL db with PHP
- From: "Chris" <designerNOSPAM@xxxxxxxxxxxxxx>
- Date: Wed, 28 Jun 2006 10:46:50 -0700
I think I'll just keep posting here until I get everything right - because
every time I post, I figure out the answer within the next 20 minutes or so
(or at least most of the time). I discovered that at some point when I had
edited it (several times) I had left out the WHERE (duh):
:)
Chris
"Chris" <designerNOSPAM@xxxxxxxxxxxxxx> wrote in message
news:e7uduo$bf7$1@xxxxxxxxxxxxxxxxxxx
I now have it showing in the content section of the current page, however I
still don't have it set up to display more than 1 page. I am working on
that....but I have discovered that my query isn't working well in the PHP
display, but it works just fine in my SQLyog query analyzer. I am querying
2 tables - one with the actual links which has a foriegn key to a table
that lists the project that the page is related to. I have tried several
joins - using a RIGHT or INNER JOIN I get the proper result in the query
analyzer of only 2 links which both relate to only 1 project. However,
when I run this same query in PHP it gives me the same set of links to
every project (cartesian product). Is this a PHP issue, and if so, how do
I handle it?
.
- References:
- Search MySQL db with PHP
- From: Chris
- Re: Search MySQL db with PHP
- From: lorento
- Re: Search MySQL db with PHP
- From: Chris
- Re: Search MySQL db with PHP
- From: Chris
- Re: Search MySQL db with PHP
- From: Chris
- Search MySQL db with PHP
- Prev by Date: Re: Search MySQL db with PHP
- Next by Date: Re: Modify MySQL time column values
- Previous by thread: Re: Search MySQL db with PHP
- Next by thread: Convert $string to gibberish - how?
- Index(es):
Relevant Pages
|