Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.php > #9968

Re: mysqli --- who does the switching?

From Scott Johnson <noonehome@chalupasworld.com>
Newsgroups comp.lang.php
Subject Re: mysqli --- who does the switching?
Date 2013-06-29 08:39 -0700
Organization A noiseless patient Spider
Message-ID <kqmupf$u7a$1@dont-email.me> (permalink)
References <1cqlqb3ios05w.1w55o6m4csbvg.dlg@40tude.net> <kqldd9$3iq$1@dont-email.me> <1j0au50ay7evh.av7k1l8mhqbm$.dlg@40tude.net> <kqlidr$mjn$1@dont-email.me> <8327248.6c9QIRKujb@PointedEars.de>

Show all headers | View raw


On 6/28/2013 8:43 PM, Thomas 'PointedEars' Lahn wrote:
> Scott Johnson wrote:
>
>> On 6/28/2013 6:54 PM, richard wrote:
>>> On Fri, 28 Jun 2013 18:36:42 -0700, Scott Johnson wrote:
>> <snip>
>>> Or would this be the more proper way of doing mysql_query()?
>>>
>>> http://www.php.net/manual/en/mysqli-result.data-seek.php
>>>
>>
>> I have not used data_seek but it just seems like a way to place a
>> pointer in the result set.  Not 100% since I just glanced at it.
>>
>> Look at the fecth_???? methods but with the mysqli_query not the
>> mysql_query.   The (i) is the key.
>>
>> And if you have issues getting it to work just throw the code you are
>> using up here and I am sure someone can help since you are updating your
>> code.
>
> Sorry to kill the mysqli hype here, but the most intuitive and easiest to
> learn database API to replace mysql is by far PHP Data Objects (PDO), which
> is stable since PHP 5.1 (2005) [1].  It is also database-agnostic.  Use that
> instead of mysql(i) if possible.  And avoid servers running PHP < 5.3 if you
> value your data.  The last PHP 5.2.x was released more than two years ago.
> [2]
>
>
> [1] <http://php.net/pdo>
> [2] <http://php.net/ChangeLog-5.php>
>
>
> PointedEars
>

Not sure if I would call it a hype, just giving an alternative to what 
is being used that I am familiar with.

PDO may be an option worth exploring.

Back to comp.lang.php | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

mysqli --- who does the switching? richard <noreply@example.com> - 2013-06-28 20:39 -0400
  Re: mysqli --- who does the switching? Lew Pitcher <lew.pitcher@digitalfreehold.ca> - 2013-06-28 21:11 -0400
    Re: mysqli --- who does the switching? richard <noreply@example.com> - 2013-06-28 21:23 -0400
      Re: mysqli --- who does the switching? Doug Miller <doug_at_milmac_dot_com@example.com> - 2013-06-29 13:13 +0000
        Re: mysqli --- who does the switching? The Natural Philosopher <tnp@invalid.invalid> - 2013-06-29 15:27 +0100
          Re: mysqli --- who does the switching? richard <noreply@example.com> - 2013-06-29 13:19 -0400
          Re: mysqli --- who does the switching? Tim Streater <timstreater@greenbee.net> - 2013-06-29 22:37 +0100
            Re: mysqli --- who does the switching? The Natural Philosopher <tnp@invalid.invalid> - 2013-06-30 11:12 +0100
            Re: mysqli --- who does the switching? Alf Christophersen <alf.christophersen@medisin.uio.no> - 2013-07-06 23:33 +0200
              Re: mysqli --- who does the switching? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-07-07 23:15 +0200
                Re: mysqli --- who does the switching? Richard Yates <richard@yatesguitar.com> - 2013-07-08 12:02 -0700
  Re: mysqli --- who does the switching? Scott Johnson <noonehome@chalupasworld.com> - 2013-06-28 18:36 -0700
    Re: mysqli --- who does the switching? richard <noreply@example.com> - 2013-06-28 21:50 -0400
      Re: mysqli --- who does the switching? Scott Johnson <noonehome@chalupasworld.com> - 2013-06-28 19:58 -0700
        Re: mysqli --- who does the switching? Richard Yates <richard@yatesguitar.com> - 2013-06-30 13:56 -0700
    Re: mysqli --- who does the switching? richard <noreply@example.com> - 2013-06-28 21:54 -0400
      Re: mysqli --- who does the switching? Scott Johnson <noonehome@chalupasworld.com> - 2013-06-28 20:02 -0700
        Re: mysqli --- who does the switching? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-29 05:43 +0200
          Re: mysqli --- who does the switching? Scott Johnson <noonehome@chalupasworld.com> - 2013-06-29 08:39 -0700
  Re: mysqli --- who does the switching? Thomas 'PointedEars' Lahn <PointedEars@web.de> - 2013-06-29 04:37 +0200
    Re: mysqli --- who does the switching? The Natural Philosopher <tnp@invalid.invalid> - 2013-06-29 10:40 +0100
      Re: mysqli --- who does the switching? Luuk <luuk@invalid.lan> - 2013-06-29 13:11 +0200
        Re: mysqli --- who does the switching? The Natural Philosopher <tnp@invalid.invalid> - 2013-06-29 13:30 +0100
          Re: mysqli --- who does the switching? Luuk <luuk@invalid.lan> - 2013-06-29 20:39 +0200
          Re: mysqli --- who does the switching? Richard Yates <richard@yatesguitar.com> - 2013-06-30 13:59 -0700
  Re: mysqli --- who does the switching? Denis McMahon <denismfmcmahon@gmail.com> - 2013-06-29 17:25 +0000
  Re: mysqli --- who does the switching? Twayne <nobody@spamcop.net> - 2013-06-29 18:56 -0400

csiph-web