|
Posted by Chuck Anderson on 11/26/05 03:47
julian_m wrote:
>Chuck Anderson wrote:
>
>
>>julian_m wrote:
>>
>>
>>>Bob Stearns wrote:
>>>
>>>
>>>>Better than either:
>>>>
>>>>$sql = 'select * from articles where articles.id in ($arr_art_id)';
>>>>mysqlquery($sql);
>>>> //do whatever i have to do
>>>>
>>>>
>>>>
>>>>
>>>As you can imagine, I didn't know anything about "in".....
>>>
>>I've used IN for subqueries, but I'd never heard of using it with an
>>array. Can you really use the array just like that? After trying to find
>>more info on this, all I have seen indicates that you have to implode
>>the array into a comma separated list.
>>
>>Si o no?
>>
>>
>
>Efectivamente, tiene usted absoluta razón ; )
>
>It doesn't work just including the array into the sql. I think that Bob
>Stearns wrote a sort of pseudo-code (just as i did) to "show the road"
>...
>
>
Okay. I wanted to be sure I understood how to use this properly.
>By the way, a few days ago I saw in the news a guy who is travelling on
>his bike all around the world. If you are interested, or even if you
>want to improve your spanish, you can give it a look
>
>www.acercandoelmundo.com
>
>
Thanks. .... I'm always getting myself in too deep this way. As I like
to say, I know just enough Spanish (German, too) to get myself into
"trouble." Just enough to make someone think that I know what I'm
talking about :-)
Anyway, I don't know enough Spanish to be able to read that site by
myself, but I *can* see that this is a very ambitious project. And, it
is a couple (man and woman) riding a tandem bicycle. They plan to stay
on the road for 10 years.
Re: language. I use "si o no" as a "universal phrase" ..... much like
the German kaput, or Italian ciao. I think those are all understood in
any country.
--
*****************************
Chuck Anderson • Boulder, CO
http://www.CycleTourist.com
Integrity is obvious.
The lack of it is common.
*****************************
Navigation:
[Reply to this message]
|