Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 9:48 PM, Jim Lucas wrote: > On 08/24/2012 12:34 PM, Matijn Woudt wrote: >> >> On Fri, Aug 24, 2012 at 8:24 PM, Jim Lucas wrote: > > > Personally, I let my code ramble on as long a line as it needs. I use > tabs > (set to 8 chars) in my code. That is b

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 12:34 PM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 8:24 PM, Jim Lucas wrote: Personally, I let my code ramble on as long a line as it needs. I use tabs (set to 8 chars) in my code. That is because the other developers that I work with have editors that can display the tabs i

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 8:24 PM, Jim Lucas wrote: >>> >>> Personally, I let my code ramble on as long a line as it needs. I use >>> tabs >>> (set to 8 chars) in my code. That is because the other developers that I >>> work with have editors that can display the tabs in whatever width they >>> de

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 1:24 PM, Jim Lucas wrote: > Well, not to talk bad about Gmail (I use it for personal accounts), but I > like using a client that I do have some control over what it does to my > email. Making sure that it retains my formatting is one of my first > requirements. I'd like t

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 09:28 AM, tamouse mailing lists wrote: On Fri, Aug 24, 2012 at 10:16 AM, Jim Lucas wrote: On 08/24/2012 08:01 AM, tamouse mailing lists wrote: OT Reply -- just frustrated with the way email screws up program listings. It's a royal pain to have to strip out code and then put it i

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 08:47 AM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 5:33 PM, Jim Lucas wrote: On 08/24/2012 08:25 AM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: Two simple guide lines will help everybody here. 1) Limit your lines to 80 characters 2) Use spaces

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:20 AM, David OBrien wrote: > In gmail if I see something is totally screwed up visually I click the > little dropdown where you'd select reply to all and then choose show > original... > It shows the source of the email in monospaced font so if looks like it was > meant

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:12 AM, Matijn Woudt wrote: > On Fri, Aug 24, 2012 at 5:01 PM, tamouse mailing lists > wrote: >> OT Reply -- just frustrated with the way email screws up program >> listings. It's a royal pain to have to strip out code and then put it >> in an editor and tidy it up just

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:47 AM, Matijn Woudt wrote: > On Fri, Aug 24, 2012 at 5:33 PM, Jim Lucas wrote: >> On 08/24/2012 08:25 AM, Matijn Woudt wrote: >>> >>> On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: Two simple guide lines will help everybody here. 1) Limit your li

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:16 AM, Jim Lucas wrote: > On 08/24/2012 08:01 AM, tamouse mailing lists wrote: >> >> OT Reply -- just frustrated with the way email screws up program >> listings. It's a royal pain to have to strip out code and then put it >> in an editor and tidy it up just to be able t

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Fri, Aug 24, 2012 at 10:11 AM, Samuel Lopes Grigolato wrote: > Do you mean the ">" quotation marks? Have you tried to create a simple > Notepad++ macro? I do this for things like formatting SQL from SQL Editor to > SQL String in code, and vice versa. No, I mean the way the code is mangled wi

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
On Thu, Aug 23, 2012 at 2:51 PM, admin wrote: > Hello everyone, > > In my quest to build bigger and better dynamic content, I am > putting forth a concept to see what you all think. > > Many times I come across customers who want drop down menus dynamically > built from database ta

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 5:33 PM, Jim Lucas wrote: > On 08/24/2012 08:25 AM, Matijn Woudt wrote: >> >> On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: >>> >>> Two simple guide lines will help everybody here. >>> >>> 1) Limit your lines to 80 characters >>> 2) Use spaces instead of Tabs >>> >> >>

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 08:25 AM, Matijn Woudt wrote: On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: Two simple guide lines will help everybody here. 1) Limit your lines to 80 characters 2) Use spaces instead of Tabs Are we going to discuss coding guidelines again? The 80-character limit is outdat

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 5:22 PM, Jim Lucas wrote: > Two simple guide lines will help everybody here. > > 1) Limit your lines to 80 characters > 2) Use spaces instead of Tabs > Are we going to discuss coding guidelines again? The 80-character limit is outdated, 100 or 120 is more common today. And

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
Two simple guide lines will help everybody here. 1) Limit your lines to 80 characters 2) Use spaces instead of Tabs -- Jim Lucas http://www.cmsws.com/ http://www.cmsws.com/examples/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread David OBrien
On Fri, Aug 24, 2012 at 11:16 AM, Jim Lucas wrote: > On 08/24/2012 08:01 AM, tamouse mailing lists wrote: > >> OT Reply -- just frustrated with the way email screws up program >> listings. It's a royal pain to have to strip out code and then put it >> in an editor and tidy it up just to be able t

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Jim Lucas
On 08/24/2012 08:01 AM, tamouse mailing lists wrote: OT Reply -- just frustrated with the way email screws up program listings. It's a royal pain to have to strip out code and then put it in an editor and tidy it up just to be able to make heads or tails out of something. There are lots of code p

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread Matijn Woudt
On Fri, Aug 24, 2012 at 5:01 PM, tamouse mailing lists wrote: > OT Reply -- just frustrated with the way email screws up program > listings. It's a royal pain to have to strip out code and then put it > in an editor and tidy it up just to be able to make heads or tails out > of something. There ar

RES: [PHP] Dynamic Content thoughts

2012-08-24 Thread Samuel Lopes Grigolato
] Enviada em: sexta-feira, 24 de agosto de 2012 12:02 Para: php-general@lists.php.net Assunto: Re: [PHP] Dynamic Content thoughts OT Reply -- just frustrated with the way email screws up program listings. It's a royal pain to have to strip out code and then put it in an editor and tidy it up

Re: [PHP] Dynamic Content thoughts

2012-08-24 Thread tamouse mailing lists
OT Reply -- just frustrated with the way email screws up program listings. It's a royal pain to have to strip out code and then put it in an editor and tidy it up just to be able to make heads or tails out of something. There are lots of code pasting sites around, but that breaks up the continuity

RE: [PHP] Dynamic Content thoughts

2012-08-23 Thread admin
-Original Message- From: Matijn Woudt [mailto:tijn...@gmail.com] Sent: Thursday, August 23, 2012 4:39 PM To: admin Cc: php-general@lists.php.net Subject: Re: [PHP] Dynamic Content thoughts On Thu, Aug 23, 2012 at 9:51 PM, admin wrote: > Hello everyone, > > In my

Re: [PHP] Dynamic Content thoughts

2012-08-23 Thread Matijn Woudt
On Thu, Aug 23, 2012 at 9:51 PM, admin wrote: > Hello everyone, > > In my quest to build bigger and better dynamic content, I am > putting forth a concept to see what you all think. > > Many times I come across customers who want drop down menus dynamically > built from database ta

[PHP] Dynamic Content thoughts

2012-08-23 Thread admin
Hello everyone, In my quest to build bigger and better dynamic content, I am putting forth a concept to see what you all think. Many times I come across customers who want drop down menus dynamically built from database tables. Old way Example: Echo '--Please Select--'; $qu

[PHP] Dynamic open_basedir and mod_vhost_alias

2012-04-02 Thread Alex Domoradov
Maybe anyone can point me in the right direction. I need to modify this patch http://www.phpbuilder.com/lists/php-developer-list/2000101/0994.php and replace VIRTUAL_DOCUMENT_ROOT with real path. As described in patch note - "When using mod_vhost_alias the DOCUMENT_ROOT = PATH_TRANSLATED - SCRIPT

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Andre Polykanine
Original message From: David Mehler To: php-general Date created: , 2:06:17 PM Subject: [PHP] dynamic copyright in page footer? Hello, I am trying to use php to put a copyright notice in a page footer. I'm using the date function with the "Y" value for t

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Lars Nielsen
; echo $date; > > } > Sent via BlackBerry from T-Mobile > > -Original Message- > From: David Mehler > Date: Sat, 30 Apr 2011 07:06:17 > To: php-general > Subject: [PHP] dynamic copyright in page footer? > Hello, > > I am trying to use php to put a copyright n

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Geoff Lane
On Saturday, April 30, 2011, Simon J Welsh wrote: > I would use something simple like: > if(date('Y') == '2011') { > echo '2011'; > } else { > echo '2011-', date('Y'); > } ... or in one line: echo (date('Y') != '2011' ? '2011-' : '') . date('Y'); However, you might want to chang

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread dholmes1031
30 Apr 2011 07:06:17 To: php-general Subject: [PHP] dynamic copyright in page footer? Hello, I am trying to use php to put a copyright notice in a page footer. I'm using the date function with the "Y" value for the year. Here's the code: This works great for a site done in 201

Re: [PHP] dynamic copyright in page footer?

2011-04-30 Thread Simon J Welsh
On 30/04/2011, at 11:06 PM, David Mehler wrote: > Hello, > > I am trying to use php to put a copyright notice in a page footer. I'm > using the date function with the "Y" value for the year. Here's the > code: > > echo date ('Y'); > ?> > > This works great for a site done in 2011 but next year

[PHP] dynamic copyright in page footer?

2011-04-30 Thread David Mehler
Hello, I am trying to use php to put a copyright notice in a page footer. I'm using the date function with the "Y" value for the year. Here's the code: This works great for a site done in 2011 but next year I'm going to want to have 2011 and 2012 in the copyright notice, adding an additional ye

Re: [PHP] Dynamic menu

2010-07-19 Thread Dan Joseph
On Sat, Jul 17, 2010 at 5:17 PM, jordan wrote: > I am new in this group and first whant to say hello to all. > Need me menu who have different link if user is login or logout, something > like dynamic menu. Somebody can tall me how can i use and create this > menu.

[PHP] Dynamic menu

2010-07-19 Thread jordan
Hello All, I am new in this group and first whant to say hello to all. Need me menu who have different link if user is login or logout, something like dynamic menu. Somebody can tall me how can i use and create this menu. Thansk -- PHP General Mailing List (http://www.php.net/) To unsubscrib

RE: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-25 Thread Alice Wei
> From: ak...@telkomsa.net > To: aj...@alumni.iu.edu; php-general@lists.php.net > Subject: RE: [PHP] Dynamic Menus in a PHP Form Issue > Date: Tue, 25 May 2010 08:59:08 +0200 > > -Original Message- > From: Alice Wei [mailto:aj...@alumni.iu.edu] > Sent: 24 May

RE: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-25 Thread Arno Kuhl
-Original Message- From: Alice Wei [mailto:aj...@alumni.iu.edu] Sent: 24 May 2010 04:47 PM To: php-general@lists.php.net Subject: [PHP] Dynamic Menus in a PHP Form Issue Hi,I have a snippet as in the following: Select the type of your starting point of interest

Re: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread tedd
At 11:38 AM -0400 5/24/10, tedd wrote: At 10:46 AM -0400 5/24/10, Alice Wei wrote: Hi,I have a snippet as in the following: Select the type of your starting point of interest: id="start_menu"> onclick="alert(document.form1.start)"/> Apartment If I tried to p

Re: [PHP] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread tedd
At 10:46 AM -0400 5/24/10, Alice Wei wrote: Hi,I have a snippet as in the following: Select the type of your starting point of interest: onclick="alert(document.form1.start)"/> Apartment If I tried to put this at the top of a file where I save as PHP with

[PHP] Dynamic Menus in a PHP Form Issue

2010-05-24 Thread Alice Wei
Hi,I have a snippet as in the following: Select the type of your starting point of interest: Apartment If I tried to put this at the top of a file where I save

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread Paul M Foster
On Thu, Nov 19, 2009 at 01:09:48PM -0500, tedd wrote: > At 10:48 AM -0500 11/19/09, Jack S wrote: >> Hi Todd, >> >> This looks like a good starting point for me. >> I was going to use $_SERVER['PHP_SELF']; but I think >> ($_SERVER['SCRIPT_NAME']); in your example will always return just the >> sc

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread tedd
At 10:48 AM -0500 11/19/09, Jack S wrote: Hi Todd, This looks like a good starting point for me. I was going to use $_SERVER['PHP_SELF']; but I think ($_SERVER['SCRIPT_NAME']); in your example will always return just the script info and not additionally passed information, which will save me tr

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread Jack S
Hi Todd, This looks like a good starting point for me. I was going to use $_SERVER['PHP_SELF']; but I think ($_SERVER['SCRIPT_NAME']); in your example will always return just the script info and not additionally passed information, which will save me trouble shooting later! Thanks!!! On Thu, N

Re: [PHP] dynamic meta tag and title app?

2009-11-19 Thread tedd
At 11:30 AM -0500 11/18/09, Jack S wrote: Hello All, Does anyone have a reference to a program that may be out there to help with using a single header.php for a site, but then dynamically loads different keywords , titles etc based on what page is including the header file? Sample: If home pag

RE: [PHP] dynamic meta tag and title app?

2009-11-19 Thread Ashley Sheridan
On Wed, 2009-11-18 at 21:42 -0800, Daevid Vincent wrote: > > Actually, you can make a site today that uses JAvascript to enhance > > functionality. > > I'd say a fits that category. You can live without it. > > > Something as simple as a title for a page shouldn't be > > relying on Javascript

RE: [PHP] dynamic meta tag and title app?

2009-11-18 Thread Daevid Vincent
> Actually, you can make a site today that uses JAvascript to enhance > functionality. I'd say a fits that category. You can live without it. > Something as simple as a title for a page shouldn't be > relying on Javascript to function! Shouldn't = I agree. Sometimes the way a page is coded,

RE: [PHP] dynamic meta tag and title app?

2009-11-18 Thread Ashley Sheridan
Wednesday, November 18, 2009 2:24 PM > To: Daevid Vincent > Cc: 'Jack S'; php-general@lists.php.net > Subject: RE: [PHP] dynamic meta tag and title app? > > > Rather than use Javascript, which would limit your site to only those > browsers that support Javascript, hav

RE: [PHP] dynamic meta tag and title app?

2009-11-18 Thread Daevid Vincent
on how you construct your page and the order of things, and how dynamic you need the title to be. _ From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] Sent: Wednesday, November 18, 2009 2:24 PM To: Daevid Vincent Cc: 'Jack S'; php-general@lists.php.net Subject: RE: [PHP]

RE: [PHP] dynamic meta tag and title app?

2009-11-18 Thread Ashley Sheridan
name or whatever: > > > parent.document.title = "<?= PRODUCT_NAME ?> :: <?= $PAGE_TITLE ?>"; > > > > -Original Message- > > From: Jack S [mailto:jacklistm...@gmail.com] > > Sent: Wednesday, November 18, 2009 8:30 AM > > To: php-general@lists.

RE: [PHP] dynamic meta tag and title app?

2009-11-18 Thread Daevid Vincent
S [mailto:jacklistm...@gmail.com] > Sent: Wednesday, November 18, 2009 8:30 AM > To: php-general@lists.php.net > Subject: [PHP] dynamic meta tag and title app? > > Hello All, > > Does anyone have a reference to a program that may be out there to > help with using a s

[PHP] dynamic meta tag and title app?

2009-11-18 Thread Jack S
Hello All, Does anyone have a reference to a program that may be out there to help with using a single header.php for a site, but then dynamically loads different keywords , titles etc based on what page is including the header file? Sample: If home page include it knows the title and other varia

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-30 Thread MEM
> -Original Message- > From: MEM [mailto:tal...@gmail.com] > Sent: terça-feira, 27 de Outubro de 2009 12:05 > To: 'a...@ashleysheridan.co.uk' > Cc: 'Jim Lucas'; 'php-general@lists.php.net' > Subject: RE: [PHP] dynamic menu with show hide

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread MEM
>Think of it a bit like an online shop selling operating systems: > >1) All the main OS's you sell are on the front page - Linux, MacOS & Windows >2) User clicks on Linux, and is taken to the url /products/linux and they are >shown all the Linux OS's on offer >(Fedora, SuSe, Ubuntu, Knoppix, etc)

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 11:39 +, MEM wrote: > >That sounds about right yeah. You could also get a little bit clever and > >only retrieve the rows from your db that >will go to make the array elements > >you'll need. It doesn't make sense to retrieve a full product list each time > >>someone v

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread MEM
>That sounds about right yeah. You could also get a little bit clever and only >retrieve the rows from your db that >will go to make the array elements you'll >need. It doesn't make sense to retrieve a full product list each time >someone >visits the page, Ok. >so you only need to retrieve t

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 10:25 +, MEM wrote: > >I think the term drop-menu is bad in this case, as essentially what you are > >saying is: > > > >1) user is presented with the basic navigation menu > >2) user clicks an item and page navigates somewhere else > >3) because of the item user clicked

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread MEM
>I think the term drop-menu is bad in this case, as essentially what you are >saying is: > >1) user is presented with the basic navigation menu >2) user clicks an item and page navigates somewhere else >3) because of the item user clicked in 2) display some extra menu items > Exactly. >That's n

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-27 Thread Ashley Sheridan
On Tue, 2009-10-27 at 00:55 +, MEM wrote: > Thanks a lot for your replies. > > Let's see if I understand, if not, please, let me know, I'm not that > proficient in English. > Second try, in order to accomplish this, I have to: > > > 1) Generate the multidimensional array from query. > >

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread MEM
Thanks a lot for your replies. Let's see if I understand, if not, please, let me know, I'm not that proficient in English. Second try, in order to accomplish this, I have to: 1) Generate the multidimensional array from query. 2) Generate the ul / li menu (echo + foreach) displaying all child

Re: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread Ashley Sheridan
"What > if > JS is turned off??" > > Show everything by default. Then, using JS, hide all that should be hidden and > go from their. > > > > > Thanks a lot once again, > > Márcio > > > > > > > > > > From: Ashley Sheri

Re: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread Jim Lucas
off??" Show everything by default. Then, using JS, hide all that should be hidden and go from their. > > Thanks a lot once again, > Márcio > > > > > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: segunda-feira, 26 de Outubro de 2009 14:38

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread Ashley Sheridan
io > > > > > > > > > > > From: Ashley Sheridan [mailto:a...@ashleysheridan.co.uk] > Sent: segunda-feira, 26 de Outubro de 2009 14:38 > To: MEM > Cc: php-general@lists.php.net > Subject: Re: [PHP] dynamic menu with show hide capabilities - > u

RE: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread MEM
-feira, 26 de Outubro de 2009 14:38 To: MEM Cc: php-general@lists.php.net Subject: Re: [PHP] dynamic menu with show hide capabilities - understanding possible workflow On Mon, 2009-10-26 at 13:28 +, MEM wrote: Hello all, I'm on my way to build my first dynamic menu using php. Ho

Re: [PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread Ashley Sheridan
On Mon, 2009-10-26 at 13:28 +, MEM wrote: > Hello all, > > I'm on my way to build my first dynamic menu using php. > However, each time I say this, people start jumping at me crying out loud: > "Jquery" . > I don't need js for this. Really. (At least, this is what I believe). > > So I was wo

[PHP] dynamic menu with show hide capabilities - understanding possible workflow

2009-10-26 Thread MEM
Hello all, I'm on my way to build my first dynamic menu using php. However, each time I say this, people start jumping at me crying out loud: "Jquery" . I don't need js for this. Really. (At least, this is what I believe). So I was wondering if It's possible to accomplish it, by using css and php

Re: [PHP] Dynamic array creation and tracking

2009-10-06 Thread tedd
At 12:18 PM -0400 10/6/09, John Nichel wrote: Howdy guys and girls. Been a long time since I've been in these parts. My php is rusty these days, so please bare with me. I'm trying to create a dynamic, multidimensional array, and keep track of which level I'm on, opening and closing levels as ne

[PHP] Dynamic array creation and tracking

2009-10-06 Thread John Nichel
Howdy guys and girls. Been a long time since I've been in these parts. My php is rusty these days, so please bare with me. I'm trying to create a dynamic, multidimensional array, and keep track of which level I'm on, opening and closing levels as needed. Lets say that I have some data like the b

[PHP] Dynamic Titles

2009-06-11 Thread Austin Caudill
Hello, im trying to make the CMS system im using more SEO friendly by giving each page it's own title. Right now, the system assigns all pages the same general title. I would like to use PHP to discertain which page is being viewed and in turn, which title should be used. I have put in the titl

Re: [PHP] dynamic navigation menu

2009-06-11 Thread viraj
On Thu, Jun 11, 2009 at 1:21 PM, web wrote: > > Please can some one help me with a dynamic menu. you can accomplish this easily. read about 'recursive functions' > > I have a 2 tables and I want to display the record from the first one as > parent  and the second one as the child. use a mysql

Re: [PHP] dynamic navigation menu

2009-06-11 Thread Ashley Sheridan
On Thu, 2009-06-11 at 09:51 +0200, web wrote: > Please can some one help me with a dynamic menu. > > I have a 2 tables and I want to display the record from the first one as > parent and the second one as the child. > > My problem is when I query the data I can't place the child at their > appro

[PHP] dynamic navigation menu

2009-06-11 Thread web
Please can some one help me with a dynamic menu. I have a 2 tables and I want to display the record from the first one as parent and the second one as the child. My problem is when I query the data I can't place the child at their appropriate position. Please you help will be appreciated.

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread Lists
George Larson wrote: [snip] Donovan: There's no "powers that be" on this list. The closest is Dan and we all ignore him. :-) Next question -- how do you keep login's and passwords safe? Is the following not embedded in the html? [SQLConnect dbType=MySQL&host=192.168.1.1&database=TestNames&uid=

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread tedd
At 10:26 AM -0400 3/21/09, George Larson wrote: For the record, I'm with Tedd. Regardless of this being a "designated" PHP arena, I'm enjoying this WebDNA conversation and might even give it a test drive... One of the good things about this list is that most of us are multi-lingual. Most of

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread George Larson
On Sat, Mar 21, 2009 at 8:58 AM, tedd wrote: > At 1:03 PM -0500 3/20/09, Lists wrote: > >> tedd wrote: >> >>> Now, can you show me how to pull data from a mysql database so that the >>> input statements can be created dynamically? >>> >> >> >> Sure, >> On the WebDNA side, it's something like this

Re: [PHP] Dynamic Form 'on The Fly' OT

2009-03-21 Thread tedd
At 1:03 PM -0500 3/20/09, Lists wrote: tedd wrote: Now, can you show me how to pull data from a mysql database so that the input statements can be created dynamically? Sure, On the WebDNA side, it's something like this (form of "names" from a database): -snip- However, like you said, this

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-20 Thread Lists
tedd wrote: [snip] No problem here -- I'm open to all languages. The OP posted his question on a php list and that's the reason why I responded with a php solution. Now, can you show me how to pull data from a mysql database so that the input statements can be created dynamically? Cheers,

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-20 Thread tedd
At 11:40 AM -0500 3/20/09, Lists wrote: O.K., I may get a back lash.. but I can't resist making a very small plug here for our server side language, WebDNA. Here is the same code in WebDNA: The Form: [loop start=1&end=3] [/loop] The Recieving page code (loop): [formvariables name=go_&exact=F

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-20 Thread Lists
O.K., I may get a back lash.. but I can't resist making a very small plug here for our server side language, WebDNA. Here is the same code in WebDNA: The Form: [loop start=1&end=3] [/loop] The Recieving page code (loop): [formvariables name=go_&exact=F] [value] [/formvariables] The URL: h

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-20 Thread tedd
At 12:12 PM -0700 3/18/09, revDAVE wrote: -snip Q: ANY Ideas? To follow up again, here's a demo of what I recommended -- with code: http://www.webbytedd.com//post-array/index.php As you can see, you can have as many input statements as can be generated. There is no need to index each o

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-19 Thread tedd
At 12:12 PM -0700 3/18/09, revDAVE wrote: -snip Q: ANY Ideas? It may look odd, but trash all the count stuff and try this: HTML: PHP: foreach ($_POST['go'] as $a) { echo "$a"; } Cheers, tedd -- --- http://sperling.com http://ancientstones.com http://earthstones.com -- PH

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-18 Thread Shawn McKenzie
Bob McConnell wrote: > From: revDAVE >> Using a repeating region of a query, I want to generate a 'form on the > fly' >> So for each repeat - I have an extra form input >> >> Each input name = thisline >> >> So it will make names like: >> >> thisline1 >> thisline2 >> thisline3 >> Etc. >> >> For

Re: [PHP] Dynamic Form 'on The Fly'

2009-03-18 Thread Paul M Foster
On Wed, Mar 18, 2009 at 12:12:54PM -0700, revDAVE wrote: > Using a repeating region of a query, I want to generate a 'form on the fly' > > So for each repeat - I have an extra form input > > Each input name = thisline > > So it will make names like: > > thisline1 > thisline2 > thisline3 >

RE: [PHP] Dynamic Form 'on The Fly'

2009-03-18 Thread Carlos Garcia
with this is a simple text : $this = 'thisline' . $cnt; echo $_POST[$this]; Carlos A. Garcia Hernandez > Date: Wed, 18 Mar 2009 12:12:54 -0700 > From: c...@hosting4days.com > To: php-general@lists.php.net > Subject: [PHP] Dynamic Form 'on The Fly' &g

RE: [PHP] Dynamic Form 'on The Fly'

2009-03-18 Thread Bob McConnell
From: revDAVE > > Using a repeating region of a query, I want to generate a 'form on the fly' > > So for each repeat - I have an extra form input > > Each input name = thisline > > So it will make names like: > > thisline1 > thisline2 > thisline3 > Etc. > > For the form fields > > --

[PHP] Dynamic Form 'on The Fly'

2009-03-18 Thread revDAVE
Using a repeating region of a query, I want to generate a 'form on the fly' So for each repeat - I have an extra form input Each input name = thisline So it will make names like: thisline1 thisline2 thisline3 Etc. For the form fields - $cnt = 1; Repeat.

Re: [PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread revDAVE
On 3/12/2009 12:25 PM, "Paul M Foster" wrote: > Crap, I hit the wrong button and sent this only to the OP... > > On Thu, Mar 12, 2009 at 09:24:48AM -0700, revDAVE wrote: > Thanks for your help Paul - that makes sense! > > Here is working code to do it better: > > // get your starting date

Re: [PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread revDAVE
On 3/12/2009 9:39 AM, "TG" wrote: > $currmonth = date("m"); > > for ($i = 1; $i <= 11; $i++) { > $m[$i] = date("m/d/y"), mktime(0,0,0,$currmonth-$i, 1, 2009)); > } > > Something like that. mktime() is remarkably flexible. If you start on > month 3 and you subtract 5, you get month = -2.

Re: [PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread Paul M Foster
Crap, I hit the wrong button and sent this only to the OP... On Thu, Mar 12, 2009 at 09:24:48AM -0700, revDAVE wrote: > Hi folks, > > My goal was to create a dynamic date related list as follows: > > - take the current date (3/12/2009) > - create a new date from it which would be the *1st* of t

Re: [PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread Andrew Ballard
On Thu, Mar 12, 2009 at 12:24 PM, revDAVE wrote: > Hi folks, > > My goal was to create a dynamic date related list as follows: > > - take the current date (3/12/2009) > - create a new date from it which would be the *1st* of that month - > (3/1/2009) > > - then create a list that shows the current

Re: [PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread TG
Original Message - From: revDAVE To: Date: Thu, 12 Mar 2009 09:24:48 -0700 Subject: [PHP] Dynamic Date List Newbie Problem > Hi folks, > > My goal was to create a dynamic date related list as follows: > > - take the current date (3/12/2009) > - create a new date from it w

[PHP] Dynamic Date List Newbie Problem

2009-03-12 Thread revDAVE
Hi folks, My goal was to create a dynamic date related list as follows: - take the current date (3/12/2009) - create a new date from it which would be the *1st* of that month - (3/1/2009) - then create a list that shows the current and previous 11 months like: 03/1/09 02/1/09 01/1/09 12/1/08 11

Re: [PHP] dynamic forms

2008-12-16 Thread ceo
If you have their ID when you generate the HTML FORM, there is no need for anything as exotic as Ajax... //get their $ID //query the DB using $ID to get $whatever echo "", htmlentities($whatever), ""; If you don't know their ID until the interact with other form elements, then, yeah, go

RE: [PHP] dynamic forms

2008-12-16 Thread Jay Blanchard
[snip] I would like to create a from that will pull and display information based on a user's ID from a postgresql database into a textarea on the form, before the submit button is clicked. Are there some tutorials on how to use PHP to dynamically display information on a form as the form is being

[PHP] dynamic forms

2008-12-16 Thread Marc Fromm
I would like to create a from that will pull and display information based on a user's ID from a postgresql database into a textarea on the form, before the submit button is clicked. Are there some tutorials on how to use PHP to dynamically display information on a form as the form is being fill

[PHP] dynamic extension

2008-08-03 Thread Alain Roger
Hi, i do not see anymore the dynamic extension part in php.ini file, under PHP 5.2.6. is it normal ? thx -- Alain Windows XP SP2 PostgreSQL 8.2.4 / MS SQL server 2005 Apache 2.2.4 PHP 5.2.4 C# 2005-2008

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED!!

2008-07-31 Thread Rahul S. Johari
On Jul 31, 2008, at 3:10 PM, Boyd, Todd M. wrote: -Original Message- From: Rahul S. Johari [mailto:[EMAIL PROTECTED] Sent: Thursday, July 31, 2008 2:06 PM To: Boyd, Todd M. Cc: php-general@lists.php.net Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Andrew Ballard
On Thu, Jul 31, 2008 at 3:04 PM, Boyd, Todd M. <[EMAIL PROTECTED]> wrote: >> -Original Message- >> From: Micah Gersten [mailto:[EMAIL PROTECTED] >> Sent: Thursday, July 31, 2008 1:59 PM >> To: PHP General list >> Subject: Re: [PHP] Dynamic Sele

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Micah Gersten [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 2:08 PM > To: Boyd, Todd M. > Cc: PHP General list > Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! > > You're right. Same principles

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED!!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Rahul S. Johari [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 2:06 PM > To: Boyd, Todd M. > Cc: php-general@lists.php.net > Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- > SOLVED!! > > > D

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Micah Gersten
You're right. Same principles apply though. Thank you, Micah Gersten onShore Networks Internal Developer http://www.onshore.com Boyd, Todd M. wrote: > *cough* > > ...pretty sure he wrote "county", guys. ;) > > > Todd Boyd > Web Programmer > -- PHP General Mailing List (http://www.php.net/

Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! -- SOLVED!!

2008-07-31 Thread Rahul S. Johari
Did IT Haha ... just as you were probably writing in & sending this mail. I pretty much used your theory and actually did look around under http://www.w3schools.com/ajax/ to get the relevant AJAX information. Works like a charm. Pretty much using an onChange=grabCountiesfromAnotherPHPpa

RE: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd!

2008-07-31 Thread Boyd, Todd M.
> -Original Message- > From: Micah Gersten [mailto:[EMAIL PROTECTED] > Sent: Thursday, July 31, 2008 1:59 PM > To: PHP General list > Subject: Re: [PHP] Dynamic Select Lists - 1st Selection Effects 2nd! > > What I usually do is default to the most common country and

  1   2   3   4   5   6   7   >