OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: php-general-digest-helplists.php.net
Date: Sun Apr 14 2002 - 09:48:35 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    php-general Digest 14 Apr 2002 14:48:35 -0000 Issue 1286

    Topics (messages 92905 through 92922):

    Re: Closing curly brackets? and BEING IGNORED!
            92905 by: The_RadiX

    Re: PHP MySQL Hosting services
            92906 by: The_RadiX
            92908 by: phplists.woodenpickle.com

    Re: globals in functions
            92907 by: The_RadiX

    HTML <select> & JS
            92909 by: Vladislav Kulchitski
            92910 by: phplists.woodenpickle.com

    Re: Mailings Lists?
            92911 by: Justin French

    Multiple Threads?
            92912 by: Matthew Walker

    Re: IMAGING WITH PHP
            92913 by: Jason Wong

    Re: Closing curly brackets?
            92914 by: Jason Wong
            92918 by: The_RadiX
            92921 by: Jason Wong

    Re: first time user
            92915 by: heinisch.creaction.de

    Re: Differences in old php/apach. to new php/apach. cookie process?
            92916 by: heinisch.creaction.de
            92919 by: Justin French

    Need row number from database select
            92917 by: SP
            92920 by: John Simpson

    Semaphore for Windows
            92922 by: Marc Schecker

    Administrivia:

    To subscribe to the digest, e-mail:
            php-general-digest-subscribelists.php.net

    To unsubscribe from the digest, e-mail:
            php-general-digest-unsubscribelists.php.net

    To post to the list, e-mail:
            php-generallists.php.net

    ----------------------------------------------------------------------

    attached mail follows:


    ----- Original Message -----
    From: "The_RadiX" <the_radixhotkey.net.au>
    To: "Jennifer Downey" <jendowneyattbi.com>
    Sent: Sunday, April 14, 2002 9:47 AM
    Subject: [PHP] Re: Closing curly brackets? and BEING IGNORED!

    > Happy to hear you fixed your problem...
    >
    >
    > I sent you a reply about how you should correctly format your code as
    well..
    >
    >
    > Ooh about probably hang on will check sent items 9:28pm saturday I sent
    one
    > to you and at 10:01 I sent it off to the mail list itself..
    >
    >
    > With an attached file... In nicer format... Clearly formatted..
    >
    >
    >
    >
    > But it seems even after all this my postings here were ignored...
    >
    >
    > Hmm, leads me to think either a) I am posting these emails to wrong
    > address..
    > b) People don't like my name "The_RadiX" maybe I will rename it to Julien
    > Bonastre as it should be....
    >
    >
    >
    > Well I will soon find out if people are getting my emails anyway ;)
    >
    >
    >
    >
    >
    > Okay, well thanks Paul for helping out someone here anyway and backing up
    > the email I sent last night...
    >
    >
    >
    > Remind to spend my time selfishly on my own work, instead of helping
    > others..
    >
    >
    > Sorry.. getting carried away....
    >
    >
    > Anywayz.. will stop whinging.. back to "trying" to help the others in this
    > place..
    >
    >
    >
    >
    > Actually it's just occured to me.. That those emails were sent through the
    > HTML format.. It's happened before and it's possible now I think about it
    > that this maybe one of the reasons they have never been replied to??
    >
    >
    >
    >
    > :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    > Julien Bonastre [The-Spectrum.org CEO]
    > A.K.A. The_RadiX
    > the_radixhotkey.net.au
    > ABN: 64 235 749 494
    > Mobile: 0407 122 268
    > QUT Student #: 04475739
    > :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    >
    >
    > ----- Original Message -----
    > From: "Jennifer Downey" <jendowneyattbi.com>
    > To: <php-generallists.php.net>
    > Sent: Sunday, April 14, 2002 4:57 AM
    > Subject: [PHP] Re: Closing curly brackets?
    >
    >
    > > Well as I have seen lot's of people get yelled at if they post in the
    > wrong
    > > list. So rather than letting that happen and risk not getting any help I
    > > thought I would apologize and send it to the right list.
    > >
    > > Anyway the file you sent is it in the correct format? I have asked about
    a
    > > tutorial on proper code formatting and got back a tutorial that was
    > > extremely hard to understand. While lots of people have screamed at me
    for
    > > my coding format no one has supplied an understandable answer. That is
    > > until this morning.
    > >
    > > From Paul Burney :
    > >
    > > Hi Jennifer,
    > >
    > > The first thing you should do is properly indent your code. If you do
    so,
    > > you'll be sure to find the missing bracket. Basically, for each new
    > block,
    > > tab out again. It really helps to use a programmer's editor with syntax
    > > highlighting like vim or BBEdit.
    > >
    > > Thought that was the best tutorial I could ever get. Short and sweet and
    > oh
    > > so easy to understand.
    > > I am using HTML_Kit as it has the same features as all the othere
    editors
    > > (color coding and such) but it also has a lot more I can get plugins for
    > > anything I would ever need. Except a formatting tutorial ;)
    > >
    > > I will use your code as an example of formatting.
    > > It doesn't work as far as the script goes as it returns multiple:
    > > Warning: Supplied argument is not a valid MySQL result resource.
    > >
    > > So I am going to study your formatting and start at the beginning.
    > >
    > > But thank you for your time and help! :)
    > >
    > > You have been a great help, look at my new signature.
    > >
    > > Thanks again
    > > Jennifer
    > >
    > >
    > >
    > > ---
    > > Outgoing mail is certified Virus Free.
    > > Checked by AVG anti-virus system (http://www.grisoft.com).
    > > Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002
    > >
    > >
    > >
    > > --
    > > PHP General Mailing List (http://www.php.net/)
    > > To unsubscribe, visit: http://www.php.net/unsub.php
    > >
    >

    attached mail follows:


    wow.. 10-15gb.. where do you get that kinda hosting and for how much??

    Here in Aus it'd cost you a packet.. Don't know where abouts in the globe
    you are though..

    Here in AUS my host only gives me 1gb p/m and 50mb space... for AUD$399p/a
    that's USD$198... bit of a ripoff I think. but unbelievably they're one of
    the cheapest I have ever seen in AUS and best quality...

    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Julien Bonastre [The-Spectrum.org CEO]
    A.K.A. The_RadiX
    the_radixhotkey.net.au
    ABN: 64 235 749 494
    Mobile: 0407 122 268
    QUT Student #: 04475739
    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

    ----- Original Message -----
    From: "Jennifer Downey" <jendowneyattbi.com>
    To: <php-generallists.php.net>
    Sent: Sunday, April 14, 2002 7:46 AM
    Subject: [PHP] PHP MySQL Hosting services

    > Hi everyone,
    >
    > I am wondering if anyone has a good hosting service? I am currently with
    > Aletia which has an excellant package good tech support but sometimes not
    > very functional servers.
    >
    > My site has gone down at least 3 times within the last 20 days. Too many
    for
    > me.
    >
    > It has to be at least 50 mb disk space, 10 to 15gig /m transfer, of course
    > PHP and MySQL, ftp, ssh or telnet, cgi/perl, free domain transfer, at
    least
    > 15 POP3 email accounts, cron support.
    >
    > Thanks
    > Jennifer
    > --
    > The sleeper has awaken
    >
    >
    >
    >
    >
    >
    > ---
    > Outgoing mail is certified Virus Free.
    > Checked by AVG anti-virus system (http://www.grisoft.com).
    > Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002
    >
    >
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, visit: http://www.php.net/unsub.php
    >

    attached mail follows:


    http://webpipe.net

    They seem to be doing good with uptime.. In the last couple months I've been
    having a monitoring service check them frequently and so far we're at 100%..

    Standard Virtual Package ($24.95/mo - $14.95 setup):
    Linux RedHat 7.1
    300mb Disk Space
    25 POP3 Accounts
    10GB/mo transfer
    Static IP Address
    Apache 1.3.20
    PHP 4.0.6
    Dedicated MySQL Server
    CRON
    Telnet/SSH/FTP
    Sendmail
    SSL
    Webmin Control Panel
    Host up to 25 Apache VHosts

    Premium Virtual Package ($34.95/mo - $14.95 setup)::
    Linux RedHat 7.1
    500mb Disk Space
    50 POP3 Accounts
    20GB/mo transfer
    Static IP Address
    Apache 1.3.20
    PHP 4.0.6
    Dedicated MySQL Server
    CRON
    Telnet/SSH/FTP
    Sendmail
    SSL
    Webmin Control Panel
    Priority Technical Support
    Host up to 50 Apache VHosts

    Plus you get a free month credit for referring others.. Hint, hint.. (it's
    Bob Weaver, account: custompcweb.com)

    Later,

    Bob Weaver

    "The_radix" <the_radixhotkey.net.au> wrote in message
    news:010401c1e346$5e494300$3200a8c0oracle...
    > wow.. 10-15gb.. where do you get that kinda hosting and for how much??
    >
    >
    > Here in Aus it'd cost you a packet.. Don't know where abouts in the globe
    > you are though..
    >
    >
    > Here in AUS my host only gives me 1gb p/m and 50mb space... for AUD$399p/a
    > that's USD$198... bit of a ripoff I think. but unbelievably they're one of
    > the cheapest I have ever seen in AUS and best quality...
    >
    >
    >
    >
    >
    >
    >
    >
    >
    > :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    > Julien Bonastre [The-Spectrum.org CEO]
    > A.K.A. The_RadiX
    > the_radixhotkey.net.au
    > ABN: 64 235 749 494
    > Mobile: 0407 122 268
    > QUT Student #: 04475739
    > :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    >
    >
    > ----- Original Message -----
    > From: "Jennifer Downey" <jendowneyattbi.com>
    > To: <php-generallists.php.net>
    > Sent: Sunday, April 14, 2002 7:46 AM
    > Subject: [PHP] PHP MySQL Hosting services
    >
    >
    > > Hi everyone,
    > >
    > > I am wondering if anyone has a good hosting service? I am currently with
    > > Aletia which has an excellant package good tech support but sometimes
    not
    > > very functional servers.
    > >
    > > My site has gone down at least 3 times within the last 20 days. Too many
    > for
    > > me.
    > >
    > > It has to be at least 50 mb disk space, 10 to 15gig /m transfer, of
    course
    > > PHP and MySQL, ftp, ssh or telnet, cgi/perl, free domain transfer, at
    > least
    > > 15 POP3 email accounts, cron support.
    > >
    > > Thanks
    > > Jennifer
    > > --
    > > The sleeper has awaken
    > >
    > >
    > >
    > >
    > >
    > >
    > > ---
    > > Outgoing mail is certified Virus Free.
    > > Checked by AVG anti-virus system (http://www.grisoft.com).
    > > Version: 6.0.344 / Virus Database: 191 - Release Date: 4/2/2002
    > >
    > >
    > >
    > > --
    > > PHP General Mailing List (http://www.php.net/)
    > > To unsubscribe, visit: http://www.php.net/unsub.php
    > >
    >

    attached mail follows:


    Just one thing...

    Is there an easier way than having to manually place "global" in each
    function...??

    Other than passing by parameter?

    Like is it possible to actually declare var's in PHP as global?

    thx..

    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::
    Julien Bonastre [The-Spectrum.org CEO]
    A.K.A. The_RadiX
    the_radixhotkey.net.au
    ABN: 64 235 749 494
    Mobile: 0407 122 268
    QUT Student #: 04475739
    :::::::::::::::::::::::::::::::::::::::::::::::::::::::::::

    attached mail follows:


    HI I was wondering if anyone can answer my question :) it's more HTML
    related though, but I'll dare to post it here and apologize in advance
    if I am going against the rules.

    The issues is, if I am using the following code:

    <select name="rows_per_page">
    <option selected>25
    <option>10
    <option>50
    <option>100
    </select>

    The problem I am having is that when I get rid of '</select>' it gives
    the formatting like I needed, and with '</select>' it increases the CELL
    where I am using this SELECT, like it is like having "<br>", i.e. it's
    maximizing the height.

    When I get rid of </select> the whole <SELECT> thing doesn't show in
    NETSCAPE but does show and work fine in IE 5-6.0

    Also can someone help with JS for this option... like as soon as you
    selected something the page will go loading without having to click
    SUBMIT.

    Thanks a lot.
    Vlad

    attached mail follows:


    Yeah, this really has nothing to do with PHP.. The Javascript question you
    ask can be answered with a simple query at
    http://www.google.com/search?hl=en&q=select+onchange

    As for the other, can't help.. You should try an HTML group..

    Later,
    Bob

    "Vladislav Kulchitski" <vladalidaconnection.com> wrote in message
    news:0D192E12994BF64B84EB7BE6D960E390077E31alidamail.alidaconnection.com...

    HI I was wondering if anyone can answer my question :) it's more HTML
    related though, but I'll dare to post it here and apologize in advance
    if I am going against the rules.

    The issues is, if I am using the following code:

    <select name="rows_per_page">
    <option selected>25
    <option>10
    <option>50
    <option>100
    </select>

    The problem I am having is that when I get rid of '</select>' it gives
    the formatting like I needed, and with '</select>' it increases the CELL
    where I am using this SELECT, like it is like having "<br>", i.e. it's
    maximizing the height.

    When I get rid of </select> the whole <SELECT> thing doesn't show in
    NETSCAPE but does show and work fine in IE 5-6.0

    Also can someone help with JS for this option... like as soon as you
    selected something the page will go loading without having to click
    SUBMIT.

    Thanks a lot.
    Vlad

    attached mail follows:


    No, it's not an issue of what PHP can do, it's an issue about the actual
    server, what mail programs they're running, what sort of filtering you can
    do on mail, whether you have a CGI version of PHP running, and the fact that
    they already may have a solution on the server which doesn't require any
    programming at all.

    At the risk of repeating myself, talk to your ISP, and tell them what you
    want to achieve... chances are, they've already got it all sorted out for
    another client.

    Justin French
    --------------------
    Creative Director
    http://Indent.com.au
    --------------------

    on 14/04/02 1:38 AM, Randum Ian (mailrandumiancharts.co.uk) wrote:

    > Can I just grab the required info from phpinfo() and post it here?
    >
    > Ian.
    >
    > ----- Original Message -----
    > From: "Justin French" <justinindent.com.au>
    > To: "php" <php-generallists.php.net>
    > Sent: Saturday, April 13, 2002 4:21 PM
    > Subject: Re: [PHP] Mailings Lists?
    >
    >
    >> Contact your ISP, because it depends on your set-up... you basicaly need
    > to
    >> pipe all emails to that address to the CGI version of PHP, and then you
    > can
    >> grab the message and forward it to the entire list.
    >>
    >> But your ISP may also have other tools for this... if I send to all one
    > of
    >> my domains, it forwards to a pre-determined list of site contributors (a
    >> mailing list/group)... this is a simple text file that I can edit too.
    >>
    >> So, best advice is to start by telling your ISP what you want to achieve,
    >> and asking what they have available, or if it's your own server, post the
    >> set-up.
    >>
    >>
    >> Justin French
    >>
    >> --------------------
    >> Creative Director
    >> http://Indent.com.au
    >> --------------------
    >>
    >>
    >>
    >> on 13/04/02 10:44 PM, Randum Ian (mailrandumiancharts.co.uk) wrote:
    >>
    >>> Hi there,
    >>>
    >>> I want to be able to send an email to 'newsdeskdanceportal.co.uk' and
    > have
    >>> it sent to everybody in my 'newsletter' database. Are there any
    > resources
    >>> online that would show me how to do this? Ive searched but found nothing
    > so
    >>> far.
    >>>
    >>> Regards, Ian.
    >>>
    >>> ___
    >>> Ian Roke
    >>> Webmaster, DancePortal (UK) Limited
    >>> webmasterdanceportal.co.uk
    >>> http://www.danceportal.co.uk
    >>> DancePortal.co.uk - Global dance music media
    >>>
    >>
    >>
    >> --
    >> PHP General Mailing List (http://www.php.net/)
    >> To unsubscribe, visit: http://www.php.net/unsub.php
    >>
    >>
    >

    attached mail follows:


    I don’t remember the name of the module offhand, but once upon a time, I
    used a perl module that would fork multiple threads so that you could
    execute several web queries at the same time. This saved a lot of time,
    if, for instance, you had to get information from UPS, FedEx, and the
    USPS about shipping rates to display on a page. If you had to query them
    one at a time, the delay would be unacceptable. However, with that perl
    module, you could query them all at the same time, making it much
    faster.
     
    Does anyone know if such a thing exists for PHP?
     
    Matthew Walker
    Senior Software Engineer
    ePliant Marketing
     

    ---
    Outgoing mail is certified Virus Free.
    Checked by AVG anti-virus system (http://www.grisoft.com).
    Version: 6.0.345 / Virus Database: 193 - Release Date: 4/9/2002
     
    

    attached mail follows:


    On Sunday 14 April 2002 04:05, Vins wrote: > nope i'm not wrong. > no functin to determine the image ratio

    Let's go back to basics. What do you need to know to determine the image size ratio?

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* Absent, adj.: Exposed to the attacks of friends and acquaintances; defamed; slandered. */

    attached mail follows:


    On Saturday 13 April 2002 19:24, The_RadiX wrote: > No it's okay .... lots' of people post general HTML questions in here..

    I hope people don't get the wrong impression. General HTML questions is NOT what this list is for. This list is called "php-general" for a very good reason!

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* A good scapegoat is hard to find. A guilty conscience is the mother of invention. -- Carolyn Wells */

    attached mail follows:


    haha

    Yeah you are right

    But in her case the question was quite heavily a PHP related one..

    But yes I see what you mean, and no we don't want HTML q's in here...

    bye ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: Julien Bonastre [The-Spectrum.org CEO] A.K.A. The_RadiX the_radixhotkey.net.au ABN: 64 235 749 494 Mobile: 0407 122 268 QUT Student #: 04475739 ::::::::::::::::::::::::::::::::::::::::::::::::::::::::::: ----- Original Message ----- From: "Jason Wong" <php-generalgremlins.com.hk> To: <php-generallists.php.net> Sent: Sunday, April 14, 2002 3:11 PM Subject: Re: [PHP] Closing curly brackets?

    > On Saturday 13 April 2002 19:24, The_RadiX wrote: > > No it's okay .... lots' of people post general HTML questions in here.. > > I hope people don't get the wrong impression. General HTML questions is NOT > what this list is for. This list is called "php-general" for a very good > reason! > > -- > Jason Wong -> Gremlins Associates -> www.gremlins.com.hk > Open Source Software Systems Integrators > * Web Design & Hosting * Internet & Intranet Applications Development * > > /* > A good scapegoat is hard to find. > A guilty conscience is the mother of invention. > -- Carolyn Wells > */ > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    On Sunday 14 April 2002 19:04, The_RadiX wrote: > haha > > Yeah you are right > > But in her case the question was quite heavily a PHP related one..

    I wasn't commenting on any particular case.

    > But yes I see what you mean, and no we don't want HTML q's in here...

    Absolutely!

    -- 
    Jason Wong -> Gremlins Associates -> www.gremlins.com.hk
    Open Source Software Systems Integrators
    * Web Design & Hosting * Internet & Intranet Applications Development *
    

    /* It is only with the heart one can see clearly; what is essential is invisible to the eye. -- The Fox, 'The Little Prince" */

    attached mail follows:


    At 13.04.2002 12:04, you wrote: >hi folks, >i am somewhat like a new newbie, just read my first php tutorial, installed >an apache server on my windows and php on top for testing , first question >is : is this the right place for me here to ask questions or is this >newsgroup rather for advanced users?

    You´re welcome here, if your questions related to php. If there are specific php-windows questions, you should ask them on the windowsPHP list.

    >second question is my task i want to complete in PHP : > >i have an array for a dhtml navigation menu for my site. all the links are >"hard coded" inside the array and are , of course , the same for the whole >site EXCEPT for the language selection. > >now, for example, i am on a page called about.php, i am clicking on the link >for the german version and a page called german/about.php should be >retrieved. same for spanish. > >now, what do i do? >i have found a php snippet that reads the current url <?php > >$filelocation=$HTTP_HOST.$PHP_SELF; >echo($filelocation);?> > >but can i use this somehow and how do i do that?

    You can shorten this : echo "<a href="'$HTTP_HOST."/german/".$PHP_self.'">German</a>'; echo "<a href="'$HTTP_HOST."/spanish/".$PHP_self.'">Espanol</a>'; but it should be enough if you use echo "<a href="'german/".$PHP_self.'">German</a>'; assuming that this dir/page is locatet in the root of your vserver. HTH Oliver

    attached mail follows:


    Sorry, but this problem hasn´t been solved yet, It drives me crazy.

    At 12.04.2002 17:41, I wrote: >Hi Folks, >Does anybody know if there are differences in cookieprocessing >between >A.Suse 2.2.14-SMP/apache 1.3.12 / PHP 3.0.16 and >B.Suse 2.4.9 /apache 1.3.20 / PHP 4.0.6 >I have moved "working pages" from A to B, and now (Win)Opera 6.01 >will not accept cookies from the, formerly working, pages. I have >CookieTracking on >on both machines. The apache-cookie is sent and set from both machines. >But my php-routines (which sends the fitting cookie to the dif. browsers) >work different. >Someone had same problems? >Maybe I forgot something in httpd.conf on B ? >Any suggestions? > >TIA Oliver

    attached mail follows:


    Ummmmm, have you search the manual at all????????

    I did two quick searches, and found some good hints... it may not be your problem, but, it's a good starting point, before asking questions.

    I started with setcookie(): "In PHP 3, multiple calls to setcookie() in the same script will be performed in reverse order. If you are trying todelete one cookie before inserting another you should put the insert before the delete. In PHP 4, multiple calls to setcookie() are performed in the order called." http://www.php.net/manual/en/function.setcookie.php

    I also did a search on the manual for "cookies" and the first result was a page discussing the migration of php3 > php4, in specific, how cookies work differently. http://www.php.net/manual/ro/migration4.cookies.php

    Wow! Isn't the manual a wonderful resource :P

    Justin French -------------------- Creative Director http://Indent.com.au --------------------

    on 14/04/02 6:54 PM, heinischcreaction.de (heinischcreaction.de) wrote:

    > Sorry, but this problem hasn´t been solved yet, It drives me crazy. > > At 12.04.2002 17:41, I wrote: >> Hi Folks, >> Does anybody know if there are differences in cookieprocessing >> between >> A.Suse 2.2.14-SMP/apache 1.3.12 / PHP 3.0.16 and >> B.Suse 2.4.9 /apache 1.3.20 / PHP 4.0.6 >> I have moved "working pages" from A to B, and now (Win)Opera 6.01 >> will not accept cookies from the, formerly working, pages. I have >> CookieTracking on >> on both machines. The apache-cookie is sent and set from both machines. >> But my php-routines (which sends the fitting cookie to the dif. browsers) >> work different. >> Someone had same problems? >> Maybe I forgot something in httpd.conf on B ? >> Any suggestions? >> >> TIA Oliver > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php >

    attached mail follows:


    If this is my database result from a select then I need to know that Bob is the 1st result, Mike is the 2nd result and John is the 3rd result ...

    Name Address ======== =============== Bob 121 King St. Mike 99 Main St. John 8433 Albert St.

    Does mysql keep track of this? I know I could just do a $i++ as I loop through the results but I'm doing something recursively so the counter doesn't work here.

    attached mail follows:


    If you know you're looking for Bob or Mike or John, you could select the rows each time in your loop as an associative array.

    mysql_fetch_array(result, MYSQL_ASSOC)

    will do the trick.

    "Sp" <internetraceryifan.net> wrote in message news:NDBBJHKAELJNNJMBMFHDGEDNCOAA.internetraceryifan.net... > If this is my database result from a select then I need to know that Bob is > the 1st result, Mike is the 2nd result and John is the 3rd result ... > > Name Address > ======== =============== > Bob 121 King St. > Mike 99 Main St. > John 8433 Albert St. > > Does mysql keep track of this? I know I could just do a $i++ as I loop > through the results but I'm doing something recursively so the counter > doesn't work here. > >

    attached mail follows:


    Hi,

    how can I use the shared memory functions for windows. I read before, that it is possible.

    Who can help me?

    Thanks!

    Marc