Re: [PHP] Re: Field Value not carrying over.

2004-05-04 Thread PHP
Oops, Never mind, I found the problem. > I have succesfully done what you are describing in a project. If the old > value is submitted then the new value is not correctly set/changed. Do > alert(document.myform.myfield.value); after you change the value to check if > it was really changed. > > Reg

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Marek Kilimajer
msa wrote: My date format is as aboveI am getting the following error message: You have an error in your SQL syntax. Check the manual that corresponds to your MySQL server version for the right syntax to use near 'Y') . ' AND MONTH(date) = ' . date('m') . ' ORDER BY sort DESC' I changed your co

[PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
"Msa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > 'SELECT * FROM table WHERE YEAR(date) = ' . date('Y') . ' AND MONTH(date) > = > > ' . date('m') . ' ORDER BY SORT DESC' > > > > What column type is your date column of? I know that the above statement > > works with the MySQL dat

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread msa
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > date('m') was not parsed by php as it was in the string. Syntax > highlighting would help you see it. Try: > > "SELECT * FROM NewsArchive WHERE YEAR(date) = '" . date('Y') . "' AND > MONTH(date) ='" . date('m') . "'

Re: [PHP] Re: repeating data from one column until data from anothercolumn changes

2004-05-04 Thread Torsten Roehr
"Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > msa wrote: > > My date format is as aboveI am getting the following error message: > > > > You have an error in your SQL syntax. Check the manual that corresponds to > > your MySQL server version for the right synta

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
"Msa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > date('m') was not parsed by php as it was in the string. Syntax > > highlighting would help you see it. Try: > > > > "SELECT * FROM NewsArchive W

[PHP] Re: Pulling out string from a string

2004-05-04 Thread Justin Patrin
Ryan Schefke wrote: Can anyone help me with the code to pull out "clientxxx" from the below string: /tgwedding/users/client1/sites/testgrabid.php I use $PHP_SELF to get the directory structure of the page and store that string as a variable. Then, I want to pull out the string "clientxx", where "x

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
"Daniel Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Are you looping through the record set? > > >> "SELECT * FROM NewsArchive WHERE YEAR(date) = '" . date('Y') . "' AND > >> MONTH(date) ='" . date('m') . "' ORDER BY sort DESC"; > > > > Well, still not working...but maybe

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread msa
"Daniel Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Are you looping through the record set? i thought I was, but it isn't working!! here is the code with all of the latest suggestions. start code at top of document: end top code start code in body of document:

RE: [PHP] Re: Pulling out string from a string

2004-05-04 Thread Ryan Schefke
Justin, Very nice preg_match statement. I realized I need to make a minor tweek to what I needed. I need to get the number after the "client" string in /tgwedding/users/client1/sites/testgrabid.php ...so, in the string above I need to pull out the number "1". Any help? -Original Message-

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Torsten Roehr
"Msa" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > > "Daniel Clark" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > Are you looping through the record set? > > i thought I was, but it isn't working!! > > here is the code with all of the latest suggestions. > >

[PHP] Pulling out string from a string

2004-05-04 Thread Ryan Schefke
Can anyone help me with the code to pull out "clientxxx" from the below string: /tgwedding/users/client1/sites/testgrabid.php I use $PHP_SELF to get the directory structure of the page and store that string as a variable. Then, I want to pull out the string "clientxx", where "xx" can be any giv

RE: [PHP] paging methodology

2004-05-04 Thread Chris W. Parker
John W. Holmes on Tuesday, May 04, 2004 1:30 PM said: > I don't follow what "$_GET record count from initial query performed > above;" is for, but that's the basic methodology. well that just meant that after the initial count of records is found it will be retrieve

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Daniel Clark
Are you looping through the record set? >> "SELECT * FROM NewsArchive WHERE YEAR(date) = '" . date('Y') . "' AND >> MONTH(date) ='" . date('m') . "' ORDER BY sort DESC"; > > Well, still not working...but maybe closer? Not getting an error message, > just not returning any data. -- PHP Gen

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread msa
- Original Message - > > start code at top of document: > > > > > mysql_select_db($database_jpike, $jpike); > > $query_rsENews = 'SELECT * FROM NewsArchive WHERE YEAR(date) = ' . > date('Y') > > . ' AND MONTH(date) = ' . date('m') . ' ORDER BY sort DESC'; > > $rsENews = mysql_query($query

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Daniel Clark
Are you getting any output? > > mysql_select_db($database_jpike, $jpike); > $query_rsENews = 'SELECT * FROM NewsArchive WHERE YEAR(date) = ' . > date('Y') > . ' AND MONTH(date) = ' . date('m') . ' ORDER BY sort DESC'; > $rsENews = mysql_query($query_rsENews, $jpike) or die(mysql_error()); > $ro

Re: [PHP] Re: Pulling out string from a string

2004-05-04 Thread Justin Patrin
Heh, I got ahead of myself anyway. I should have just hard-coded client. preg_match('!/client(\d+)/!', $_SERVER['PHP_SELF'], $matches); $xxx = $matches[1]; Ryan Schefke wrote: Justin, Very nice preg_match statement. I realized I need to make a minor tweek to what I needed. I need to get the number

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread msa
no. - Original Message - From: "Daniel Clark" <[EMAIL PROTECTED]> Newsgroups: php.general To: "msa" <[EMAIL PROTECTED]> Cc: <[EMAIL PROTECTED]> Sent: Tuesday, May 04, 2004 5:02 PM Subject: Re: [PHP] Re: repeating data from one column until data from another column changes > Are you gett

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Daniel Clark
Netscape browser? In your browser have you checked View Source to see it table data is there? > no. > > - Original Message - > From: "Daniel Clark" <[EMAIL PROTECTED]> > > >> Are you getting any output? -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.p

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread msa
definitely "Daniel Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Netscape browser? > In your browser have you checked View Source to see it table data is there? > > > no. > > > > - Original Message - > > From: "Daniel Clark" <[EMAIL PROTECTED]> > > > > > >> Are y

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread PHP
If you have no may articles then there will be no records returned. Just change the . date('m') to the actualy month you want if not the current month. - Original Message - From: "msa" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, May 04, 2004 3:59 PM Subject: Re: [PHP] Re:

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread msa
"Php" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > If you have no may articles then there will be no records returned. > > Just change the . date('m') to the actualy month you want if not the > current month. except if I have to specify the specific month I want, then every mon

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Daniel Clark
Just for right now, go ahead a make the date change, or elimate the date range to get SOMETHING to come out. >> Just change the . date('m') to the actualy month you want if not the >> current month. > > > except if I have to specify the specific month I want, then every month I > have to go in

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Curt Zirzow
* Thus wrote msa ([EMAIL PROTECTED]): > > "Marek Kilimajer" <[EMAIL PROTECTED]> wrote in message > news:[EMAIL PROTECTED] > > date('m') was not parsed by php as it was in the string. Syntax > > highlighting would help you see it. Try: > > > > "SELECT * FROM NewsArchive WHERE YEAR(date) = '" . date

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Curt Zirzow
* Thus wrote msa ([EMAIL PROTECTED]): > I didn't hand write much of thisdreamweaver writes a lot of it behind > the scenes.i'm not much of a code writer, just get into small needs here > and there...REALLY appreciate all of you trying to help me!!! dreamweaver writes buggy code, you'd be b

Re: [PHP] Pulling out string from a string

2004-05-04 Thread Curt Zirzow
* Thus wrote Ryan Schefke ([EMAIL PROTECTED]): > Can anyone help me with the code to pull out "clientxxx" from the below > string: > > /tgwedding/users/client1/sites/testgrabid.php $parts = explode('/', $path); echo $parts[2]; // client1 Curt -- "I used to think I was indecisive, but now I'm n

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread msa
when i take out the WHERE clause, I get ALL 192 titles in the upper right side and ALL 192 titles and descriptions in the main body..which is almost what i want...minus about 180 titles and articles "Daniel Clark" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Just for right

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread Daniel Clark
Good :-) You are narrowing the error down :-) Sounds like it's in the date section then. > when i take out the WHERE clause, I get ALL 192 titles in the upper right > side and ALL 192 titles and descriptions in the main body..which is > almost what i want...minus about 180 titles and article

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread PHP
Why not change the code back, then just add an article for the month of may and see if it comes up? > when i take out the WHERE clause, I get ALL 192 titles in the upper right > side and ALL 192 titles and descriptions in the main body..which is > almost what i want...minus about 180 titles

Re: [PHP] Re: repeating data from one column until data from another column changes

2004-05-04 Thread msa
"Php" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED] > Why not change the code back, then just add an article for the month of may > and see if it comes up? i am trying to automate this so I don't have to look at it againclient updates the pages and I won't be getting paid beyond

[PHP] the code angain....

2004-05-04 Thread msa
the code again... at top of document (with strange WHERE clause removed.. in body of document: E-News top -- PHP General Mailing List (http://www.php.net/) To unsubscribe, v

[PHP] SCP a file from my server to another using PHP

2004-05-04 Thread Matt Babineau
Hey All: Interesting problem that I haven't been able to solve using google. I want to move a file from my system using php, and I want to SCP it to another system. I setup the 2 keys and I can SCP files w/o using a password from the command line with no problem. When I take the same string that

[PHP] WHERE clause...getting closer

2004-05-04 Thread msa
$query_rsENews = 'SELECT * FROM NewsArchive WHERE YEAR(datePublished) = ' . YEAR('NOW'()) . ' AND MONTH(datePublished) = ' . MONTH('NOW'()) . ' ORDER BY sortBy DESC'; this is supposed to return only the records that have the current month and year in the datePublished record. the above code got

Re: [PHP] WHERE clause...getting closer

2004-05-04 Thread Richard Davey
Hello msa, Wednesday, May 5, 2004, 2:18:57 AM, you wrote: m> $query_rsENews = 'SELECT * FROM NewsArchive WHERE YEAR(datePublished) = ' . m> YEAR('NOW'()) . ' AND MONTH(datePublished) = ' . MONTH('NOW'()) . ' ORDER BY m> sortBy DESC'; m> the above code got a parse error m> any ideas, anyone? You

RE: [PHP] SCP a file from my server to another using PHP

2004-05-04 Thread Vail, Warren
Matt, Question: when you run it and it fails, are you running it with php from the command line under your own userid or are you running it under a web server by invoking the php file using a URL as userid (nobody)? Warren Vail -Original Message- From: Matt Babineau [mailto:[EMAIL PROTEC

Re: [PHP] WHERE clause...getting closer

2004-05-04 Thread Curt Zirzow
* Thus wrote msa ([EMAIL PROTECTED]): > > $query_rsENews = 'SELECT * FROM NewsArchive WHERE YEAR(datePublished) = ' . > YEAR(NOW()) . ' AND MONTH(datePublished) = ' . MONTH(NOW()) . ' ORDER BY > sortBy DESC'; > > got this error: > Fatal error: Call to undefined function: year() > > any ideas, a

Re: [PHP] SCP a file from my server to another using PHP

2004-05-04 Thread Kelly Hallman
May 4 at 4:25pm, Matt Babineau wrote: > When I take the same string that I jsut used to scp the file and run it > using exec, system, passthru it doesn't work!! I'm baffled and was > hoping someone had successfully done this before. > > $address = www.url.com; > $value = "foldername"; I assume t

[PHP] Re: cleaning word HTML code

2004-05-04 Thread David Robley
[EMAIL PROTECTED] (Kim Steinhaug) wrote in news:[EMAIL PROTECTED]: > Hello, > > Has anyone seen any resources on the net on OS independent sollutions. > Im aware of the Tidy software, but its not up for the job. Doesn't need > to be open source, but it needs to be OS independent. > > All tips a

Re: [PHP] re-keying an array

2004-05-04 Thread Jason Barnett
Justin Patrin wrote: Richard Harb wrote: Uh, I was wrong... Foreach evaluates only once at initialisation... You can even unset the array once into the loop and it still works perfectly well (not that I recommend this as good practice or whatever, just did some checking to be sure :) Richard That

[PHP] Re: word to pdf via web server ??

2004-05-04 Thread Jason Barnett
John Doe wrote: hello, does any know how to conver microsoft word document to pdf via on the server using php language?? i try to implementing the feature that allow user to upload microsoft word document to the web server, after the upload, it automatic covert to pdf file ??? any one done that

[PHP] Re: Asking for data during a script

2004-05-04 Thread Jason Barnett
germán m. rivera wrote: Hi all! Let's say I have a PHP script that needs the user to input some data during its execution. At the point the data is needed the browser could be redirected to a new page with a form where the user could enter the data. But thus is necessary to save the script st

[PHP] Re: PHP & Apache Version

2004-05-04 Thread Jason Barnett
Mike R wrote: Is there a version of Apache 2+ that now works with PHP? Last I checked, the were incompatible, but recently someone I ran into claimed that the bugs have been for such a setup. :) Thanks, -MIke I've been using PHP + Apache 2 for a long time now. http://www.php.net/install.apache2 --

Re: [PHP] Re: word to pdf via web server ??

2004-05-04 Thread Travis Low
Jason Barnett wrote: John Doe wrote: hello, does any know how to conver microsoft word document to pdf via on the server using php language?? i try to implementing the feature that allow user to upload microsoft word document to the web server, after the upload, it automatic covert to pdf file ?

Re: [PHP] Re: PHP & Apache Version

2004-05-04 Thread Ray Hunter
> Is there a version of Apache 2+ that now works with PHP? Last I checked, > the were incompatible, but recently someone I ran into claimed that the bugs > have been for such a setup. There is the warning not to use apache 2.0 and php in production. I am sure that there are many that are using i

Re: [PHP] WHERE clause...getting closer

2004-05-04 Thread Ray Hunter
On Tue, 2004-05-04 at 19:18, msa wrote: > $query_rsENews = 'SELECT * FROM NewsArchive WHERE YEAR(datePublished) = ' . > YEAR('NOW'()) . ' AND MONTH(datePublished) = ' . MONTH('NOW'()) . ' ORDER BY > sortBy DESC'; > > > this is supposed to return only the records that have the current month and >

[PHP] Regular Expression

2004-05-04 Thread Tumurbaatar S.
There's an input string like "{str1,str2,...,strN}". I want to capture all these strings and due to complexity of them I use a preg_match_all() instead of simple split. A pattern for the matching strings is ready but I cannot imagine how to specify that strings are separated by commas and the last

[PHP] Re: Regular Expression

2004-05-04 Thread Tumurbaatar S.
Forgot about curly brackets. The above example is: /^\{(?:(pattern),)*|(pattern)?\}$/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: Regular Expression

2004-05-04 Thread Paul Chvostek
On Wed, May 05, 2004 at 02:26:25PM +0900, Tumurbaatar S. wrote: > > There's an input string like "{str1,str2,...,strN}". I want to capture > all these strings and due to complexity of them I use a preg_match_all() > instead of simple split. A pattern for the matching strings is ready but > I canno

RE: [PHP] PHP5 and PEAR

2004-05-04 Thread php-list
So other than Config (for now), most other packages are compatible with PHP 5 already? What about the answers to my other questions? How will PEAR be organized in PHP 5? What do I need to look out for when making the transition, etc?? Thanks. -Original Message- From: Oliver Kuhl [mailto:[E

Re: [PHP] paging methodology

2004-05-04 Thread Paul Chvostek
On Tue, May 04, 2004 at 02:37:50PM -0700, Chris W. Parker wrote: > > > I don't follow what "$_GET record count from initial query performed > > above;" is for, but that's the basic methodology. > > well that just meant that after the initial count of records is found it > will be retrieved from t