[PHP] Split/Group date together.

2013-07-18 Thread Karl-Arne Gjersøyen
Hello again. In my program I have this: mysql> SELECT * FROM transportdokument WHERE dato >= '16/7/2013' AND dato <= '18/7/2013'; This list all reccrds for 3 days. I need a way to split it up for every day even when the requst is as above and don't know in what way I can do it. I like to have al

Re: [PHP] Split/Group date together.

2013-07-18 Thread Bastien Koert
Normally, what I do here is handle that in the loop to display the records ... so start by adding an order by clause to keep the dates together SELECT * FROM transportdokument WHERE dato >= '16/7/2013' AND dato <= '18/7/2013' order by dato $prior_date = ""; $sHTML = ""; while($rows = mysql_fetc

Re: [PHP] Split/Group date together.

2013-07-18 Thread Larry Garfield
If I understand you correctly, I call what you're trying to do "PHP group by", and did a write up on it a few years back: http://www.garfieldtech.com/blog/php-group-by-with-arrays --Larry Garfield On 7/18/13 8:43 AM, Karl-Arne Gjersøyen wrote: Hello again. In my program I have this: mysql> S

[PHP] PHP and Powershell

2013-07-18 Thread Alan Loos
Good morning everyone, First time posting in here, although I've been listening in for a few weeks now. So this one has got me stumped, I am fairly new to PHP but I cannot seem to Google through this one. I cannot figure out how to 'exclude' PSComputerName and RunspaceId, which is ultimately w

[PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread php colos
Hello world! I'm trying to learn PHP ( first programming language that I learn) and I feel kinda lost. I've read PHP programming 3rd edition( O'reilly), 'getting good with PHP' by Andrew Burgees and some tutorials on the internet but can't code something more complex than 'hello world'. I do und

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread shiplu
On Fri, Jul 19, 2013 at 1:08 AM, php colos wrote: > Am I reading the wrong books for a beginner? > Do you just read the book or also do what it says to do? If you just read but dont code along with it, you may not learn anything. After reading a lot of book you'll feel you have understand a lo

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread Daniel Brown
On Thu, Jul 18, 2013 at 3:08 PM, php colos wrote: > Hello world! > > I'm trying to learn PHP ( first programming language that I learn) and > I feel kinda lost. I've read PHP programming 3rd edition( O'reilly), > 'getting good with PHP' by Andrew Burgees and some tutorials on the > internet but ca

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread Carsten Jensen
On 07/18/2013 09:08 PM, php colos wrote: > Hello world! > > I'm trying to learn PHP ( first programming language that I learn) and > I feel kinda lost. I've read PHP programming 3rd edition( O'reilly), > 'getting good with PHP' by Andrew Burgees and some tutorials on the > internet but can't code

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread Sebastian Krebs
2013/7/18 Carsten Jensen > On 07/18/2013 09:08 PM, php colos wrote: > > Hello world! > > > > I'm trying to learn PHP ( first programming language that I learn) and > > I feel kinda lost. I've read PHP programming 3rd edition( O'reilly), > > 'getting good with PHP' by Andrew Burgees and some tutor

[PHP] pass parameter from client to server

2013-07-18 Thread iccsi
I have a select control on the form and need to pass value user select to my query parameter. I just realized that user entry value is client side and query parameter is server side. Are there any way to read client parameter to pass to server? You information and help is great appreciated, Re

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Daniel Brown
On Thu, Jul 18, 2013 at 6:04 PM, iccsi wrote: > I have a select control on the form and need to pass value user select to my > query parameter. > I just realized that user entry value is client side and query parameter is > server side. > Are there any way to read client parameter to pass to serve

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Tedd Sperling
On Jul 18, 2013, at 6:07 PM, Daniel Brown wrote: > On Thu, Jul 18, 2013 at 6:04 PM, iccsi wrote: >> I have a select control on the form and need to pass value user select to my >> query parameter. >> I just realized that user entry value is client side and query parameter is >> server side.

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Tedd Sperling
One additional comment. Please change the javascript onclick to onchange -- that way the demo will work for Chrome as well as other Browsers. Cheers, tedd _ t...@sperling.com http://sperling.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http:

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Joshua Kehn
Could also use jquery instead Best, -Josh ___ http://byjakt.com Currently mobile On Jul 19, 2013, at 4:08, Tedd Sperling wrote: > > One additional comment. > > Please change the javascript onclick to onchange -- that way the demo will > work for Chrome as well as ot

Re: [PHP] I am completely lost and need an advice (beginner)

2013-07-18 Thread Tamara Temple
On Jul 18, 2013, at 12:28 PM, Daniel Brown wrote: > On Thu, Jul 18, 2013 at 3:08 PM, php colos wrote: >> Hello world! >> >> I'm trying to learn PHP ( first programming language that I learn) and >> I feel kinda lost. I've read PHP programming 3rd edition( O'reilly), >> 'getting good with PHP'

Re: [PHP] pass parameter from client to server

2013-07-18 Thread Tamara Temple
On Jul 18, 2013, at 6:53 PM, Joshua Kehn wrote: > Could also use jquery instead True, but it's good to see the bare javascript as well in a demo. > > Best, > > -Josh > ___ > http://byjakt.com > Currently mobile > > On Jul 19, 2013, at 4:08, Tedd Sperling wrote: >