php-general Digest 29 Nov 2004 08:35:51 -0000 Issue 3140

Topics (messages 203024 through 203053):

Re: Weird sessions problem
        203024 by: Jason Wong
        203031 by: steve
        203032 by: Andre Dubuc
        203049 by: Jason Wong

Re: Mass MySQL INSERT
        203025 by: Jason Wong

Re: buffer
        203026 by: Greg Donald

Re: Getting static member for a class which name is stored
        203027 by: Greg Beaver
        203035 by: Jake Press

Re: Overriding static members?
        203028 by: Greg Beaver

sql insert into 2 tables
        203029 by: Dustin Krysak
        203030 by: Larry E. Ullman

php 4 to  5
        203033 by: Travis Conway
        203034 by: Greg Beaver
        203037 by: Travis Conway
        203039 by: Curt Zirzow
        203040 by: Michael Leung
        203051 by: ShenKong
        203052 by: Lester Caine

exclude - mysql query
        203036 by: Brad Ciszewski
        203046 by: David Robley

Help with DB.php in PHP5
        203038 by: Info.Best-IT
        203050 by: ShenKong

and statement
        203041 by: Brad Ciszewski
        203042 by: Brad Ciszewski
        203043 by: Larry E. Ullman
        203044 by: Robert Cummings
        203047 by: John Nichel

similar function like getimagesize for Quicktime?
        203045 by: Dustin Krysak

newbie web services
        203048 by: Andras Kende

Problem with self join
        203053 by: suneel

Administrivia:

To subscribe to the digest, e-mail:
        [EMAIL PROTECTED]

To unsubscribe from the digest, e-mail:
        [EMAIL PROTECTED]

To post to the list, e-mail:
        [EMAIL PROTECTED]


----------------------------------------------------------------------
--- Begin Message ---
On Sunday 28 November 2004 22:46, steve wrote:

> I tried printing out the values before and after each of those lines. After
> line 53, $ref_page is an array containing precisely the values I expect, so
> the function is working. After line 54, the session var has been reset, as
> expected, to match the current page - but $ref_page has also changed and is
> now equal to $_SESSION['ref_page'], which is what I found very weird - ie,
> resetting $_SESSION['ref_page'] simultaneously reset $ref_page.

Is $ref_page getting set to what the _previous_ value of $_SESSION['ref_page'] 
was? If so, it sounds like you have register_globals enabled.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
I think we're in trouble.
  -- Han Solo
*/

--- End Message ---
--- Begin Message ---
Jason Wong wrote:

> On Sunday 28 November 2004 22:46, steve wrote:
> 
>> I tried printing out the values before and after each of those lines.
>> After line 53, $ref_page is an array containing precisely the values I
>> expect, so the function is working. After line 54, the session var has
>> been reset, as expected, to match the current page - but $ref_page has
>> also changed and is now equal to $_SESSION['ref_page'], which is what I
>> found very weird - ie, resetting $_SESSION['ref_page'] simultaneously
>> reset $ref_page.
> 
> Is $ref_page getting set to what the _previous_ value of
> $_SESSION['ref_page'] was? If so, it sounds like you have register_globals
> enabled.

No to both. When I arrive at the new page, the sessions vars (as expected)
contain the values set by the previous page. $ref_page is not set. The
values are transferred to $ref_page by the function. That works as planned.
I then reset the value of the session vars, at which point, $ref_page also
gets set. From printing out the values after each line, I find this:

Let's say we've come from the page /community.php and have arrived
at /market.php. Here are the values at each stage:

            $_SESSION['ref_page] = '/community.php'
            $_SESSION['ref_pagequery'] = 'pagemode=index' // as an example
53. $ref_page = get_ref_page();
            $ref_page['name'] =  '/community.php'
            $ref_page['query'] = 'pagemode=index'
            $_SESSION['ref_page] = '/community.php'
            $_SESSION['ref_pagequery'] = 'pagemode=index'
54. $_SESSION['ref_page'] = THIS_PAGE;
            $ref_page =  '/community.php' // now a scalar
            $_SESSION['ref_page] = '/market.php'

register_globals is off (in php.ini and there are no .htaccess files). 

-- 
@+
Steve

--- End Message ---
--- Begin Message ---
On Sunday 28 November 2004 05:46 pm, steve wrote:
> Jason Wong wrote:
> > On Sunday 28 November 2004 22:46, steve wrote:
> >> I tried printing out the values before and after each of those lines.
> >> After line 53, $ref_page is an array containing precisely the values I
> >> expect, so the function is working. After line 54, the session var has
> >> been reset, as expected, to match the current page - but $ref_page has
> >> also changed and is now equal to $_SESSION['ref_page'], which is what I
> >> found very weird - ie, resetting $_SESSION['ref_page'] simultaneously
> >> reset $ref_page.
> >
> > Is $ref_page getting set to what the _previous_ value of
> > $_SESSION['ref_page'] was? If so, it sounds like you have
> > register_globals enabled.
>
> No to both. When I arrive at the new page, the sessions vars (as expected)
> contain the values set by the previous page. $ref_page is not set. The
> values are transferred to $ref_page by the function. That works as planned.
> I then reset the value of the session vars, at which point, $ref_page also
> gets set. From printing out the values after each line, I find this:
>
> Let's say we've come from the page /community.php and have arrived
> at /market.php. Here are the values at each stage:
>
>             $_SESSION['ref_page] = '/community.php'
>             $_SESSION['ref_pagequery'] = 'pagemode=index' // as an example
> 53. $ref_page = get_ref_page();
>             $ref_page['name'] =  '/community.php'
>             $ref_page['query'] = 'pagemode=index'
>             $_SESSION['ref_page] = '/community.php'
>             $_SESSION['ref_pagequery'] = 'pagemode=index'
> 54. $_SESSION['ref_page'] = THIS_PAGE;
>             $ref_page =  '/community.php' // now a scalar
>             $_SESSION['ref_page] = '/market.php'
>
> register_globals is off (in php.ini and there are no .htaccess files).
>
> --
> @+
> Steve

Hi Steve,

As a late-comer to this thread, I'd like to toss about a few ideas.

I gather that all of the script occurs on one page, and that the page is 
'refreshed' by some action of the user (i.e. that the user has 
clicked/entered login info on some other page, and that this page then needs 
to detect that change.)

What may be happening is that the refresh action triggers the script twice: 
once for the initial loading and again for the reset values. Hence, $ref_page 
gets reset by line 53 ($ref_page = get_ref_page();

I experienced the same difficulty once, and essentially solved the problem by 
adding an extra page that is called, by a simple switch statement, if there 
is a change: i.e, from 'community' to 'market'. Another question, by any 
chance, are you switching into https by any chance?

Hth,
Andre

--- End Message ---
--- Begin Message ---
On Monday 29 November 2004 06:46, steve wrote:

> No to both. When I arrive at the new page, the sessions vars (as expected)
> contain the values set by the previous page. $ref_page is not set. The
> values are transferred to $ref_page by the function. That works as planned.
> I then reset the value of the session vars, at which point, $ref_page also
> gets set. From printing out the values after each line, I find this:
>
> Let's say we've come from the page /community.php and have arrived
> at /market.php. Here are the values at each stage:
>
>             $_SESSION['ref_page] = '/community.php'
>             $_SESSION['ref_pagequery'] = 'pagemode=index' // as an example
> 53. $ref_page = get_ref_page();
>             $ref_page['name'] =  '/community.php'
>             $ref_page['query'] = 'pagemode=index'
>             $_SESSION['ref_page] = '/community.php'
>             $_SESSION['ref_pagequery'] = 'pagemode=index'
> 54. $_SESSION['ref_page'] = THIS_PAGE;
>             $ref_page =  '/community.php' // now a scalar
>             $_SESSION['ref_page] = '/market.php'
>
> register_globals is off (in php.ini and there are no .htaccess files).

The only thing that I can think of that will cause such behaviour (that is 
setting $_SESSION['xyz'] will change $xyz) is the register_globals setting 
being enabled. If you're certain that this is not the case I suggest that you 
post some *concise* code that illustrates the problem so that others can test 
whether they can reproduce what you're seeing.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Besides, I think Slackware sounds better than 'Microsoft,' don't you?
 -- Patrick Volkerding
*/

--- End Message ---
--- Begin Message ---
On Monday 29 November 2004 03:54, Travis Conway wrote:
> I am fairly new to the concept of working wity mysql and php. 

Questions regarding the use of databases with PHP should be posted to the 
php-db list.

> I am looping 
> thru a text file full of county names and attempting to add these to a
> database.

> Now the table exists and if I enter the SQL statement manually against the
> database it works.  The user also has read and write permissions to the
> table and the columns in the table.
>
> Here is my php code:
>  $lines = file("/tmp/new1.txt");
>  foreach ($lines as $line_num => $line) {
>   echo($line . '... ');
>    $link = mysql_connect('naabe', 'naabe', 'xxxxxxxxx')

The connection should be made only once outside of the loop.

>     or die('could not connect: ' . mysql_error());

Using mysql_error() is good, use it more often ...

>     // I use substr to remove the space at the end of every line.
>    $sql = "INSERT INTO countries (country) VALUES ('" .
> substr($line,0,strlen($line)-1) . "')"; echo ($sql . ' ...<br>');
>    mysql_query($sql);

... like here. If your query barfs you'll want to know about it.

-- 
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
If you see an onion ring -- answer it!
*/

--- End Message ---
--- Begin Message ---
On Sun, 28 Nov 2004 12:48:57 -0600, Brad Ciszewski <[EMAIL PROTECTED]> wrote:
> is there a code you can put at the top of the your php files so that the
> imgs etc. load as the are put on to your computer, and it doesnt wait for
> the whole site to be downloaded until it is loaded to the user? *turning off
> the buffer basicly*

You can control PHP's output buffering.
http://us2.php.net/manual/en/ref.outcontrol.php#ini.output-buffering

You cannot control the web client's display buffering with PHP.


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

--- End Message ---
--- Begin Message --- Jake Press wrote:
Simas Toleikis wrote:

Jake Press wrote:

Hi Francisco,

Your not alone, a number of other users have enountered this bug.



string get_class ( object obj )

Its not a bug...
You are getting class name as a string for output purposes etc..
Doing something like "TestClass"::some_static is ofcourse illegal wih strings.


Morning,

Umm, it is an unclear syntax limitation, which is a bug.
... either language or manual.

i understand what you are saying, i beleive i disclaimer'd my own examples somewhere down the line in those threads ;)

i beleive there should be a better way to do this without:
- using reflection
- instantiating the class and using a method to retrieve the variable
- eval

Also please notice the existance of the "call_user_func" and what this gives us ;)
= this gives us a solution (workaround??) to access static functions within a class


Perhaps we need a similar function to provide access to our static variables! :)

How about:

<?php
class Myclass
{
    public static $myvar = "easy enough";
}

echo Myclass::$myvar;
?>

The only problem is if you want to be able to generically access a static variable from any class that has it, like $Myclass::$myvar.

Greg
--- End Message ---
--- Begin Message ---
Greg Beaver wrote:

How about:

<?php
class Myclass
{
    public static $myvar = "easy enough";
}

echo Myclass::$myvar;
?>

The only problem is if you want to be able to generically access a static variable from any class that has it, like $Myclass::$myvar.

Greg


Hi Greg,

Yup, Exactly

That is the problem we are attempting to deal with :)
(hence the name of this thread)


Best Regards Jake Press

--- End Message ---
--- Begin Message --- Matthew Weier O'Phinney wrote:
* Francisco M. Marzoa Alonso <[EMAIL PROTECTED]>:

Can I override static members in someway under PHP5? Is the answer is negative, Why not?


If they are marked public (or not marked at all as public, private, or
protected, in which case the default is public), then yes, you can
override them.

Override is misleading. Since they can only be access by Classname::$var, unless you use Reflection, code designed to work with the parent class can't access the child class's static variables.


Greg
--- End Message ---
--- Begin Message --- Hi there - I was wondering if anyone could point me in the right direction to be able to add data to two different tables (I am using mysql and php V4). I understand joins, etc for the query of the data, however adding the data - still getting my head wrapped around it (multiple tables).

Thanks!


d

--- End Message ---
--- Begin Message ---
Hi there - I was wondering if anyone could point me in the right direction to be able to add data to two different tables (I am using mysql and php V4). I understand joins, etc for the query of the data, however adding the data - still getting my head wrapped around it (multiple tables).

You'll need to run separate INSERT queries, I suspect. If one query relies upon a primary key created by the other, make use of the mysql_insert_id() function.


Larry
--- End Message ---
--- Begin Message --- I do not know much about the history of php and do not know why there is active development on both the 4 and 5 major versions, but is there a definite reason for me to migrate from 4 to 5 on my servers?

Trav
--- End Message ---
--- Begin Message --- Travis Conway wrote:
I do not know much about the history of php and do not know why there is active development on both the 4 and 5 major versions, but is there a definite reason for me to migrate from 4 to 5 on my servers?

Depends on what you wish to do with php.

PHP 5 has far better support for xml and soap than php 4. It has a stricter object model and supports native exceptions for error handling. Iterators, reflection, and __call()/__get()/__set() provide incredibly flexibility. It is new, and so not nearly as stable as PHP 4. Any solutions would need to be custom-written for PHP 5 at this point, although options are beginning to appear.

PHP 4 has a big history and is very stable. There are shortcomings that are addressed in PHP 5, but there is a huge codebase.

So, the question is, do you rely on other people's code, or your own? If you rely on other people's code, I would wait a year or two to upgrade. Otherwise, what are you waiting for?

:)
Greg

--- End Message ---
--- Begin Message --- Well, I look at other people's code sice I am new to the whole language. I have only been working with it for about a month and half now. I do have prior experience with languages such as ASP (both JScript and VBscript based). I am probably not going to upgrade now since my stuff "just works". I was just wondering what would be the main advantage.
----- Original Message ----- From: "Greg Beaver" <[EMAIL PROTECTED]>
To: "Travis Conway" <[EMAIL PROTECTED]>
Cc: "PHP-GEMERAL" <[EMAIL PROTECTED]>
Sent: Sunday, November 28, 2004 6:15 PM
Subject: [PHP] Re: php 4 to 5



Travis Conway wrote:
I do not know much about the history of php and do not know why there is active development on both the 4 and 5 major versions, but is there a definite reason for me to migrate from 4 to 5 on my servers?

Depends on what you wish to do with php.

PHP 5 has far better support for xml and soap than php 4. It has a stricter object model and supports native exceptions for error handling. Iterators, reflection, and __call()/__get()/__set() provide incredibly flexibility. It is new, and so not nearly as stable as PHP 4. Any solutions would need to be custom-written for PHP 5 at this point, although options are beginning to appear.

PHP 4 has a big history and is very stable. There are shortcomings that are addressed in PHP 5, but there is a huge codebase.

So, the question is, do you rely on other people's code, or your own? If you rely on other people's code, I would wait a year or two to upgrade. Otherwise, what are you waiting for?

:)
Greg

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

--- End Message ---
--- Begin Message ---
* Thus wrote Travis Conway:
> I do not know much about the history of php and do not know why there is 
> active development on both the 4 and 5 major versions, but is there a 
> definite reason for me to migrate from 4 to 5 on my servers?

The active development on php4 is strictly to fix bugs or security
issues. If your current code works on any 4.3.X versions, it probably
is best to keep it there unless something you need to require an
application that is dependent on php5.

php5 is the newest version available, providing (as mentioned) an
improved OOP interface and includes (by default) xmllib 2 for xml
processing.

>From my experience, I've had to just modify about 5 lines of code
to make a 1000+ line php4 application to run on php5.

At this point of time it isn't really necessary to upgrade unless
you are developing new applications for php.


Curt
-- 
Quoth the Raven, "Nevermore."

--- End Message ---
--- Begin Message ---
Hi all,
   I am developing a new application in PHP 5.  OO design is so great!
If you are developing a new application, I think you can have a look on PHP 5.

yours,
Michael

--- End Message ---
--- Begin Message --- Travis Conway wrote:
I do not know much about the history of php and do not know why there is active development on both the 4 and 5 major versions, but is there a definite reason for me to migrate from 4 to 5 on my servers?

Trav

here can help you . http://www.php.net/manual/en/history.php http://www.php.net/manual/en/migration5.php http://www.php.net/manual/en/language.oop.php http://www.php.net/manual/en/language.oop5.php

--
-- ShenKong ([EMAIL PROTECTED])
-- http://www.openphp.cn

--- End Message ---
--- Begin Message ---
Travis Conway wrote:

Well, I look at other people's code sice I am new to the whole language. I have only been working with it for about a month and half now. I do have prior experience with languages such as ASP (both JScript and VBscript based). I am probably not going to upgrade now since my stuff "just works". I was just wondering what would be the main advantage.

I switched to PHP over a year ago, and decided that as I was just starting I'd work with PHP5 from day one. The production releases just about kept pace with what I had to ship ( couple of sites used RC without problems for a while ).
If you ARE just starting then while the volume of PHP4 code is nice, working clean with PHP5 is not a problem. All my stuff 'borrows' from PHP4 without any problem, and I am learning quickly how to switch to tidier PHP5 'rules'.
I actually bought a book to help - Advanced PHP Programming by George Schlossnagle - from which I've had to rewrite some of the stuff to dump the MySQL crap ;) but gives a good grounding in getting things right.


--
Lester Caine
-----------------------------
L.S.Caine Electronic Services

--- End Message ---
--- Begin Message ---
i have several tables with data, and they all have a server column. there
are a few tables which i need to exclude a particular server from that
table. i am currently running an array to extract the data, and was
wondering if i could either use PHP code or a mysql-query exclude function
or something so these servers are available. below is the php script i
currently have... which needs the excluding script/query.

        <select name="s1" id="s1">
          <?PHP
// List servers from game \\
$get_servers = mysql_query("SELECT * FROM game_$game ORDER BY server ASC");
while($gs=mysql_fetch_array($get_servers)){
extract($gs);
echo ?>
          <option value="<?PHP echo($server); ?>"><?PHP echo($server);
?></option>
          <?PHP } ?>
        </select>

any ideas at all?

www.BradTechnologies.com
99.9% Uptime
24/7 FREE Support
Plans starting at $3.50 per month
www.BradTechnologies.com

--- End Message ---
--- Begin Message ---
On Mon, 29 Nov 2004 10:58, Brad Ciszewski wrote:

> i have several tables with data, and they all have a server column. there
> are a few tables which i need to exclude a particular server from that
> table. i am currently running an array to extract the data, and was
> wondering if i could either use PHP code or a mysql-query exclude function
> or something so these servers are available. below is the php script i
> currently have... which needs the excluding script/query.
> 
>         <select name="s1" id="s1">
>           <?PHP
> // List servers from game \\
> $get_servers = mysql_query("SELECT * FROM game_$game ORDER BY server
> ASC"); while($gs=mysql_fetch_array($get_servers)){
> extract($gs);
> echo ?>
>           <option value="<?PHP echo($server); ?>"><?PHP echo($server);
> ?></option>
>           <?PHP } ?>
>         </select>
> 
> any ideas at all?

Seems to me there are at least two ways to do it. For the php solution, test
the value of $server in the above while loop and if the value matches a
list of exclusions, don't echo the value.

For mysql, in the select use WHERE NOT IN('a','b'...) for a comma separated
list of exclude values, or simply WHERE server <> 'badname' for one server.

You may find this a useful reference:

http://dev.mysql.com/doc/mysql/en/Tutorial.html

-- 
David Robley

Do vegetarians eat animal crackers?

--- End Message ---
--- Begin Message ---
I upgraded to PHP 5 and now I am having some problems with DB.php.

2 problems:
1. I get this notice

Notice: Undefined property: DB_mysql::$disconnect

2: the $db->query no longer works.  I have gone as far as to place this line
at the beginning of the file:
set_include_path(".:/usr/local/lib/php"); //this is where DB.php resides.  I
also have QueryTool in the DB directory in this path.

Here is my code:

function db_connect($sql)
{
    global $dsn;
    $db = DB::connect($dsn, TRUE);

    $r = $db->query($sql);
    if(DB::isError($db)){
        die($db->getMessage());
    } else {
        $success = true;
    }//end if

    $s = array();
    $i =0;
    if($success){
        while($data = mysql_fetch_assoc($r->result)){
            $i++;
            array_push($s, $data);
            }
        $i =0;
        $db->disconnect;
    } else {
        die("Query for content failed.");
    }

    return $s;
    
}

Thanks for your help!
Tim

--- End Message ---
--- Begin Message --- [EMAIL PROTECTED] wrote:
I upgraded to PHP 5 and now I am having some problems with DB.php.

2 problems:
1. I get this notice

Notice: Undefined property: DB_mysql::$disconnect

2: the $db->query no longer works.  I have gone as far as to place this line
at the beginning of the file:
set_include_path(".:/usr/local/lib/php"); //this is where DB.php resides.  I
also have QueryTool in the DB directory in this path.

Here is my code:

function db_connect($sql)
{
    global $dsn;
    $db = DB::connect($dsn, TRUE);

    $r = $db->query($sql);
    if(DB::isError($db)){
        die($db->getMessage());
    } else {
        $success = true;
    }//end if

    $s = array();
    $i =0;
    if($success){
        while($data = mysql_fetch_assoc($r->result)){
            $i++;
            array_push($s, $data);
            }
        $i =0;
        $db->disconnect;
    } else {
        die("Query for content failed.");
    }

return $s;
}


Thanks for your help!
Tim


hi : DB::connect MUST be static . such as: class DB { public static connect(){} public $disconnect; } I think you can only use DB::disconnect to access constant not variable

--
-- ShenKong ([EMAIL PROTECTED])
-- http://www.openphp.cn

--- End Message ---
--- Begin Message ---
is there an 'and' statement for mysql, when you are doing multiple "where"s?

www.BradTechnologies.com
99.9% Uptime
24/7 FREE Support
Plans starting at $3.50 per month
www.BradTechnologies.com

--- End Message ---
--- Begin Message ---
err i mean ... an 'or' statement sry

www.BradTechnologies.com
99.9% Uptime
24/7 FREE Support
Plans starting at $3.50 per month
www.BradTechnologies.com

"Brad Ciszewski" <[EMAIL PROTECTED]> wrote in message
news:[EMAIL PROTECTED]
> is there an 'and' statement for mysql, when you are doing multiple
"where"s?
>
> www.BradTechnologies.com
> 99.9% Uptime
> 24/7 FREE Support
> Plans starting at $3.50 per month
> www.BradTechnologies.com

--- End Message ---
--- Begin Message ---
err i mean ... an 'or' statement sry

is there an 'and' statement for mysql, when you are doing multiple "where"s?

MySQL allows SQL statements that support both AND and OR. With OR, you can often use IN instead.
SELECT columns FROM tablename WHERE (condition1) AND (condition2)...


All of this is in the MySQL manual, of course.

Larry

PS Technically speaking, this question would have been more appropriate on a MySQL list (or the PHP-DB list).
--- End Message ---
--- Begin Message ---
On Sun, 2004-11-28 at 21:56, Brad Ciszewski wrote:
> err i mean ... an 'or' statement sry

Two comments:

1. This is the "PHP" General list. See the PHP part... that means
   it's NOT the MYSQL General list.

2. For such a trivial question you could have spent a whole 5 seconds
   executing the query to find out, or God forbid, RTF-MYSQL-M.

Cheers,
Rob.
-- 
.------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting  |
| a powerful, scalable system for accessing system services  |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for       |
| creating re-usable components quickly and easily.          |
`------------------------------------------------------------'

--- End Message ---
--- Begin Message --- Brad Ciszewski wrote:
is there an 'and' statement for mysql, when you are doing multiple "where"s?

Is there a PHP question in your MySQL question?

--
By-Tor.com
...it's all about the Rush
http://www.by-tor.com

--- End Message ---
--- Begin Message --- Hi there - I was wondering if there was some kind of PHP function to determine hte pixel size of a quicktime movie. Something like what GetImageSize() is to images, but for quicktime.

thanks!

d
--- End Message ---
--- Begin Message ---
Hello,

I want to create a simple web service.
So far tried NuSoap but don't know how to modify its default xml envelope..

I could create REST for response but not sure about how to process the
request,
maybe with simplexml ?

RAW DATA:

Request:
<XML>
<ID>5</ID>
</XML>

Response:
<XML>
<NAME>Jones</NAME>
</XML>

<?php: select * from users where id = $ID ?>

Please give any info for an easy implementation..

It will hosted on IIS6 PHP5.

Thanks,

Andras Kende
[EMAIL PROTECTED]

--- End Message ---
--- Begin Message ---
Hi...
        Please take a look at the following...

        I'm using MySQL 4.0.15
        I have the database like this....

                   Id     name         Owner
                    1    Top Menu    0
                    2    File               1
                    3    Open            1
                    4    Text File       2
                    5    Dot Net        2
                    6    ASP.Net       5
                    7    C#.Net          5

          In the above data the Id's 6 & 7  are not owner to any one.So,I
want to retrieve those Id's which are not owner to any one.

Thanks in advance,

With Cheers,
Sun.

--- End Message ---

Reply via email to