p2p.wrox.com Forums

Need to download code?

View our list of code downloads.


  Return to Index  

beginning_php thread: Re: beginning_php digest: December 17, 2001


Message #1 by "Deepak Kumar Vasudevan" <deepak@c...> on Tue, 18 Dec 2001 09:14:13 +0530
Php Odbc should have more overhead compared to direct MSSQL API.



deepak

----- Original Message -----

From: "beginning php digest" <beginning_php@p...>

To: "beginning_php digest recipients" <beginning_php@p...>

Sent: Tuesday, December 18, 2001 5:31 AM

Subject: beginning_php digest: December 17, 2001





> -----------------------------------------------

> When replying to the digest, please quote only

> relevant material, and edit the subject line to

> reflect the message you are replying to.

> -----------------------------------------------

>

> The URL for this list is:

> http://p2p.wrox.com/list.asp?list=beginning_php

>

> BEGINNING_PHP Digest for Monday, December 17, 2001.

>

> 1. Question on Beginning PHP4 pg. 172

> 2. Re: mssql_connect()  - Urgent

> 3. Re: Question on Beginning PHP4 pg. 172

> 4. Re: Question on Beginning PHP4 pg. 172

>

> ----------------------------------------------------------------------

>

> Subject: Question on Beginning PHP4 pg. 172

> From: "Adam Simpson" <adam@g...>

> Date: Mon, 17 Dec 2001 09:40:40

> X-Message-Number: 1

>

> I just finished the array example but now I'm stuck.  On page 172

> under "Improvements to our Program" it talks about using one associative

> array to make the program simpler.  I can't figure out how to do this,

> though.  Does anyone know what this improved program would look like?

> ----------------------------------------------------------------------

>

> Subject: Re: mssql_connect()  - Urgent

> From: kwan pei quen <peiquen@y...>

> Date: Mon, 17 Dec 2001 03:38:23 -0800 (PST)

> X-Message-Number: 2

>

> hi i am also new in PHP but i have finish my final

> year project using PHP with MSSQL

>

> anyway, i found that odbc connection have more

> function compare to mssql

>

> currently i have no information with me, the next time

> i online i try to mail it for you

>

> happy learning ...

>

> __________________________________________________

> Do You Yahoo!?

> Check out Yahoo! Shopping and Yahoo! Auctions for all of

> your unique holiday gifts! Buy at http://shopping.yahoo.com

> or bid at http://auctions.yahoo.com

>

> ----------------------------------------------------------------------

>

> Subject: Re: Question on Beginning PHP4 pg. 172

> From: "enapoleone" <john@e...>

> Date: Mon, 17 Dec 2001 09:44:28 -0500

> X-Message-Number: 3

>

> What an associate Array does is it simplifies Comparing the elements of

Two

> seperate Arrays of associative data  into One Array.

>

> Therefore instead of :

> 1. Iterating through one Array: looking for the capital of Arkansas

> 2. Finding the index value for the element/value in question: which would

be

> 3 or $StatesOf TheUsa[3]

> 3. And comparing the index value with the index value of an Array of

> associative data: $StateCapital[3] = Little Rock

>

> You simply:

>

> $StatesOfTheUsa["Arkansas"]

>

> i.e. echo $StatesOfTheUsa["Arkansas"]

>

> result: Little Rock

>

> I hope this was if some help.

>

>

> ----- Original Message -----

> From: "Adam Simpson" <adam@g...>

> To: "beginning php" <beginning_php@p...>

> Sent: Monday, December 17, 2001 9:40 AM

> Subject: [beginning_php] Question on Beginning PHP4 pg. 172

>

>

> > I just finished the array example but now I'm stuck.  On page 172

> > under "Improvements to our Program" it talks about using one associative

> > array to make the program simpler.  I can't figure out how to do this,

> > though.  Does anyone know what this improved program would look like?




> $subst('Email.Unsub').

> >

>

>

> ----------------------------------------------------------------------

>

> Subject: Re: Question on Beginning PHP4 pg. 172

> From: "Adam Simpson" <adam@g...>

> Date: Mon, 17 Dec 2001 16:17:51

> X-Message-Number: 4

>

> > Therefore instead of :

> > 1. Iterating through one Array: looking for the capital of Arkansas

> > 2. Finding the index value for the element/value in question: which

> would be 3 or $StatesOf TheUsa[3]

> > 3. And comparing the index value with the index value of an Array of

> > associative data: $StateCapital[3] = Little Rock

> >

> > You simply:

> >

> > $StatesOfTheUsa["Arkansas"]

> >

> > i.e. echo $StatesOfTheUsa["Arkansas"]

> >

> > result: Little Rock

>

> Thank you so much for replying to my question.  I'm still not quite sure,

> though.  For the states.php file I replaced the example's array with the

> the suggested associative array ("Alabama" => "Montgomery" etc.).

>

> I saved this as states2.php but when I open it my HTML pull-down selector

> has 50 blank choices.  How do I make this new array work with the

> echo "<option>$StatesOfTheUSA[$counter]</option>";

> line?

>

> Or should I put the new associative array in the capitals.php file and

> leave states.php as it was?

>

>

> ---

>

> END OF DIGEST

>




$subst('Email.Unsub').




  Return to Index