Reply to Re: Confused by mysqli

Your name:

Reply:


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
==================

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация