[PHP-WIN] Newbie

2005-10-13 Thread Schalk
Greetings All I am very new to PHP and have so far been using Dreamweaver MX to generate the PHP code for me, please do not stone me :) My current problem is this. Above the DOCTYPE of my document I have the following lines to connect to the database and retrieve the results: $colname_side

[PHP-WIN] Re: [PHP] Removing Items from an Array

2005-10-13 Thread Jochem Maas
[EMAIL PROTECTED] wrote: Thanks for the addition Jochem.. one reason I post here, even if it's a basic example, is because if there's a better way or a chance to learn something new, I want to have that opportunity. Thanks again! TG, its a pleasure. I often find it fun just to write stuff

Re: [PHP-WIN] Re: [PHP] Removing Items from an Array

2005-10-13 Thread Paul Menard
Well to give my .02 here. Why even go through the second foreach? By doing this you are making your code very inefficient in that it must read through the entire set of arrays. Sure it works fine if you have only a few. But if there are a few thousand it takes longer. As the arrays are structu

[PHP-WIN] Re: [PHP] Removing Items from an Array

2005-10-13 Thread tg-php
Thanks for the addition Jochem.. one reason I post here, even if it's a basic example, is because if there's a better way or a chance to learn something new, I want to have that opportunity. Thanks again! -TG = = = Original message = = = Id like to continue where TG left off ... hth. [EMAI

Re: [PHP-WIN] How to advise a script to always execute or be included?

2005-10-13 Thread Ross Honniball
I managed to find this myself. If anyone else was interested, I was looking for the auto_prepend_file directive in php.ini. Ross. Ross Honniball wrote: How do you advise a script to always execute or be included before each script is run? I can remember reading that this was an option year