|
Posted by Jerry Stuckle on 07/05/06 13:29
Dodger wrote:
> Jerry Stuckle wrote:
>
>>Dodger wrote:
>
>
>>If you want to learn another language, I would also suggest you learn
>>how the other language does things. Don't try to force the language
>>you're learning into the method you're used to.
>
>
> I won't. Thanks. Haven't started doing that yet.
>
> Only reason I'm holding to using bind variables rather than dynamically
> building a statement is because those bind variables have a reason, and
> the only reason I need an associative array back from query results
> rather than named variables to be bound to is that I'm using the same
> database backend and the table structure varies between session tables
> on the different virtual domains.
>
> In other words, it's not force it to be like Perl, it's just do the
> things I take for granted in Perl, that I often find people not
> bothering with in PHP, but my sites internals are largely builtaround
> those idioms existing.
>
Well, as I indicated in my most recent post - you can do it by fetching
the metadata, but it's a hard way of doing things.
Bind variables go both ways - if you're going to bind the parameters,
you need to bind the results, also. Or, you can use non-bound
statements and mysql(i)_fetch_array to get the results.
But you can't mix and match.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|