[PHP] Can PHP thread?

2002-05-30 Thread John Simpson

Just wondering if it can thread and if there are any examples of code on the
web.
Thanks.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: File Path - Which way is better ?

2002-05-30 Thread John Simpson

I personally use relative paths unless I am accessing a different server.
I don't think there's a bad or good way for doing this.

"Manisha" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> I am using file to read / write data. When I give file path I can give it
> in 2 ways.
>
> - As a  Virtual path
> - Real physical complete path.
>
> Which way is better and in which situation ? I just want to open up
> discussion so that I will come to know the pros and cons for both the
methods.
>
>
> Thanks in advance and regards
> Manisha
>
>
>
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] Re: Need row number from database select

2002-04-14 Thread John Simpson

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" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 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.
>
>



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php