[PHP] Re: define constants within functions?

2004-08-11 Thread Aidan Lister
Sure, define them outside the function :) Justin French [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] If I define a constant within a function, it appears that the constant is only defined within the namespace of the function. Fair enough. Can I globalise these definitions?

Re: [PHP] MySQL PHP Examples Training Providers Required

2004-08-11 Thread Lester Caine
Robby Russell wrote: Not to start a SQL war, but have you consider PostgreSQL as well in your decisions? And how about Firebird, Oracle has roots from the same original development in the 1980's. -- Lester Caine - L.S.Caine Electronic Services -- PHP General Mailing

[PHP] weird error, might be javascript?

2004-08-11 Thread Angelo Zanetti
Hi all, FIrstly apologies if this is slightly OT, but it is relevant to PHP. I have been working on a pretty big project over the last couple of months and then all of a sudden I started getting errors in my browser, the error in the bottom left corner with the yellow icon. anyway Im not sure

[PHP] Date and time

2004-08-11 Thread DIFF FanneHH
Hi, I have this date in timestamp format: $a= 20040810114155; I want to add 7 days to this date. How can i do that? Thanks Home, no matter how far... http://www.home.ro -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] weird error, might be javascript?

2004-08-11 Thread John Holmes
Angelo Zanetti wrote: I have been working on a pretty big project over the last couple of months and then all of a sudden I started getting errors in my browser, the error in the bottom left corner with the yellow icon. anyway Im not sure what causes these errors. It says that it expects a ) on

Re: [PHP] Date and time

2004-08-11 Thread John Holmes
DIFF FanneHH wrote: I have this date in timestamp format: $a= 20040810114155; I want to add 7 days to this date. How can i do that? echo date('YmdHis',mktime(substr($a,8,2),substr($a,10,2),substr($a,12,2),substr($a,4,2),substr($a,6,2)+7,substr($a,0,4))); Looks like a MySQL timestamp. If so, you

[PHP] Re: Date and time

2004-08-11 Thread Aidan Lister
That's a mysql timestamp, if you want to manipulate dates in PHP you'll need to use unix timestamps. You have a couple of options, select unix_timestamp(myFld) as myFld from myTbl Then just add 60*60*24*7 to it. Or, parse it with: function convert_timestamp ($timestamp) { $timestring =

Re: [PHP] weird error, might be javascript?

2004-08-11 Thread Angelo Zanetti
yes but even If I take the page source, its not anywhere near 597 lines long...any other ideas? Sorry forgot to mention it in initial post. John Holmes [EMAIL PROTECTED] 8/11/2004 12:44:25 PM Angelo Zanetti wrote: I have been working on a pretty big project over the last couple of months

[PHP] PHP Encoding

2004-08-11 Thread Kevin
Greetings, I have heard about PHP Encoding technique. What exactly it does and how is it useful? Any more help will really be appreciated. Thanks a lot for giving your time. -- Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] weird error, might be javascript?

2004-08-11 Thread John Holmes
Angelo Zanetti wrote: yes but even If I take the page source, its not anywhere near 597 lines long...any other ideas? Sorry forgot to mention it in initial post. Do you have a URL? It's a Javascript error, either way. -- John Holmes php|architect - The magazine for PHP professionals -

Re: [PHP] weird error, might be javascript?

2004-08-11 Thread Jason Wong
Please do not top post. On Wednesday 11 August 2004 19:03, Angelo Zanetti wrote: yes but even If I take the page source, its not anywhere near 597 lines long...any other ideas? Sorry forgot to mention it in initial post. Depending on your browser and how you view the source the line reported

[PHP] Re: SQL Functions

2004-08-11 Thread pete M
This might be slightly off the topic but I would recommend you use a database abstraction layer which will do what you want to achieve Check out Pear DB http://pear.php.net/manual/en/package.database.db.php and adodb http://adodb.sourceforge.net/ pete Dan Joseph wrote: Hi Everyone,

Re: [PHP] PHP Encoding

2004-08-11 Thread Jason Wong
On Wednesday 11 August 2004 19:11, Kevin wrote: I have heard about PHP Encoding technique. What exactly it does and how is it useful? Any more help will really be appreciated. google PHP Encoding Thanks a lot for giving your time. Thank google. -- Jason Wong - Gremlins Associates -

[PHP] Re: Date and time

2004-08-11 Thread Aidan Lister
There was a little mistake in the code I posted before, try this one: http://aidan.dotgeek.org/lib/?file=function.convert_timestamp.php Diff Fannehh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have this date in timestamp format: $a= 20040810114155; I want to add 7

RE: [PHP] MySQL PHP Examples Training Providers Required

2004-08-11 Thread Jay Blanchard
[snip] I'm looking for some examples of sites that are purely MySQL and PHP running on Unix and that contain a few thousand records preferably held in relational databases. Rationale: I need to justify PHP as a tool of choice over say vb.net or Oracle. My recommendation, despite my limited

RE: [PHP] Re: define constants within functions?

2004-08-11 Thread Jay Blanchard
[snip] Sure, define them outside the function :) [/snip] I have not tried this (we usually place constants in a section of the code external to any function) but are you saying that if a constant is defined within the bounds of a function it is not global? -- PHP General Mailing List

Re: [PHP] download script

2004-08-11 Thread zareef ahmed
Hi, Following class may be usefull. http://www.phpclasses.org/browse/package/699.html One Advice :: Please check your script in another browsers too. some Buggy Browser may cause the problems. zareef ahmed --- Aaron Todd [EMAIL PROTECTED] wrote: I was going to post another follow-up

[PHP] PHP logic - Whats going on here?

2004-08-11 Thread Kim Steinhaug
Ive stumbled onto a rather strange problem, atleast I cant see why this is happening. Im using phpMailer to send mails, and I have the following straight forward code : $mail = new phpmailer(); $mail-IsSendmail(); $mail-From = '[EMAIL PROTECTED]'; $mail-FromName = 'From Name';

[PHP] [PHP4] class overload and ref to objects

2004-08-11 Thread Alessandro Vitale
Hi all, I have encountered some troubles in trying to achieve the following: - overload class properties by means of __set() and __get() magic functions - store references to objects rather than copies of them in the overloaded class properties using the following code I can actually store and

RE: [PHP] PHP logic - Whats going on here?

2004-08-11 Thread Jay Blanchard
[snip] Then to send the mail we use this : if(!$mail-Send()) { echo $lang_error['mailer_error'] . br\n; } As you see above, Ive dropped the what if all goes well loop, since I believe that the $mail-Send() is initiaded in the first statement For some reason the above results in a

Re: [PHP] PHP logic - Whats going on here?

2004-08-11 Thread Kim Steinhaug
Thanks for your reply, it all seems logical when you think of it, still I also think it sounds logical without the extra ELSE statement since the function has to executed for the first IF to do the comparison, meaning that the email should be sendt in the first place. (If it didnt how could it

[PHP] Load data and Insert

2004-08-11 Thread Juan Pablo Herrera
Hi! i need do two querys in one. First query is a load data and the second query is insert into. My idea is to concatenate with and, but i'not know. Is it possible? Regards, Juan -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] PHP/MySQL based webmail?

2004-08-11 Thread Chris Shenton
Matthew Sims [EMAIL PROTECTED] writes: Uh, well...Squirrelmail is simply a webpage. The number of simultaneous users is defined by the web server application, aka Apache. Perhaps we view it differently. Apache is a web server. SquirrelMail and Horde are applications, written in PHP. I'm

[PHP] Re: Load data and Insert

2004-08-11 Thread Torsten Roehr
Juan Pablo Herrera [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! i need do two querys in one. First query is a load data and the second query is insert into. My idea is to concatenate with and, but i'not know. Is it possible? Regards, Juan Please specify a bit more clearly

RE: [PHP] Load data and Insert

2004-08-11 Thread Jay Blanchard
[snip] i need do two querys in one. First query is a load data and the second query is insert into. My idea is to concatenate with and, but i'not know. Is it possible? [/snip] a. It is possible. http://catb.org/~esr/faqs/smart-questions.html 2. This is a PHP list, not a SQL list. III. HTH!

[PHP] Re: Load data and Insert

2004-08-11 Thread Torsten Roehr
Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Juan Pablo Herrera [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! i need do two querys in one. First query is a load data and the second query is insert into. My idea is to concatenate with and, but

[PHP] OO Question for PHP4

2004-08-11 Thread Jed R. Brubaker
Hi all. As the subject suggests, I am using PHP4 and am having something going on that I don't think should be. Presume the following code class Foo { function Foo () { return Bar; } } $foo = new Foo; echo $foo; $foo comes out as an object. Does this have to be done in two line

RE: [PHP] OO Question for PHP4

2004-08-11 Thread Jay Blanchard
[snip] Hi all. As the subject suggests, I am using PHP4 and am having something going on that I don't think should be. Presume the following code class Foo { function Foo () { return Bar; } } $foo = new Foo; echo $foo; $foo comes out as an object. Does this have to be done in two

Re: [PHP] OO Question for PHP4

2004-08-11 Thread Jason Davidson
Im sure you should be returning a value in your constructor at all?? Ill check the manual, but i dont think ive ever seen a constructor return anything, doesnt sound right.. Let me check. Jason Jed R. Brubaker [EMAIL PROTECTED] wrote: Hi all. As the subject suggests, I am using PHP4 and am

Re: [PHP] PHP logic - Whats going on here?

2004-08-11 Thread Paul Fierro
On 08/11/2004 9:28 AM, Kim Steinhaug [EMAIL PROTECTED] wrote: Thanks for your reply, it all seems logical when you think of it, still I also think it sounds logical without the extra ELSE statement since the function has to executed for the first IF to do the comparison, meaning that the

Re: [PHP] Re: Load data and Insert

2004-08-11 Thread Juan Pablo Herrera
Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Juan Pablo Herrera [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! i need do two querys in one. First query is a load data and the second query is insert into. My idea is to concatenate with and, but

RE: [PHP] Re: Load data and Insert

2004-08-11 Thread Jay Blanchard
[snip] It's OK, but i need concatenate load data with insert. I have a file *.cvs that used three fields (a,b,c), my database have four fields(a,b,c,d). The insert have the data for last field. [/snip] This cannot be done. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

[PHP] redirecting to another frame using php header function

2004-08-11 Thread bruce
hi... can anyone point me to a way to do a page redirect using the php 'Header' function to another frame. I have a page in one frame, when the user does a submit, i want to have the app do a redirect using the 'Header' function, with the subsequent page being displayed in another frame. didn't

Re: [PHP] OO Question for PHP4

2004-08-11 Thread Matthew Weier O'Phinney
* Jason Davidson [EMAIL PROTECTED]: Im sure you should be returning a value in your constructor at all?? Ill check the manual, but i dont think ive ever seen a constructor return anything, doesnt sound right.. Let me check. From my experience, returning a value from a constructor currently

RE: [PHP] PHP logic - Whats going on here?

2004-08-11 Thread Michael Sims
Kim Steinhaug wrote: [snip] For some reason the above results in a blank mail, no $body at all, rest is fine. However, if I include a dummy for if all goes well : if(!$mail-Send()) { echo $lang_error['mailer_error'] . br\n; } else { // Why do I need this one??? }

[PHP] Mailinglists are honey for Spammers

2004-08-11 Thread SPAM
Hi, Currently i'm working on a php script which allow to archive the content of email accounts. It fetch the accounts through the imap extension and store the messages in a database. It is easy to subscribe an address to this list and collect email adresses. I mean the attemp to hide emails,

RE: [PHP] PHP logic - Whats going on here?

2004-08-11 Thread Michael Sims
Michael Sims wrote: string at various points to see what it contains. You may need to drill down into the actual source code for the Send() method to see what it things the body string is. Errr... s/things/thinks/ -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] OO Question for PHP4

2004-08-11 Thread David Bevan
On Wed, 2004-08-11 at 11:14, Jed R. Brubaker wrote: Hi all. As the subject suggests, I am using PHP4 and am having something going on that I don't think should be. Presume the following code class Foo { function Foo () { return Bar; } } $foo = new Foo; echo $foo;

Re: [PHP] OO Question for PHP4

2004-08-11 Thread Jason Davidson
Yup, i typo'd .. should have read, Im not sure you should be returning a value.. Jason Matthew Weier O'Phinney [EMAIL PROTECTED] wrote: * Jason Davidson [EMAIL PROTECTED]: Im sure you should be returning a value in your constructor at all?? Ill check the manual, but i dont think ive

Re: [PHP] redirecting to another frame using php header function

2004-08-11 Thread John Nichel
bruce wrote: hi... can anyone point me to a way to do a page redirect using the php 'Header' function to another frame. I have a page in one frame, when the user does a submit, i want to have the app do a redirect using the 'Header' function, with the subsequent page being displayed in another

[PHP] Re: [SPAM] [PHP] Date and tim

2004-08-11 Thread Justin Patrin
On 11 Aug 2004 10:35:37 -, DIFF FanneHH [EMAIL PROTECTED] wrote: Hi, I have this date in timestamp format: $a= 20040810114155; Convert it to a unix timestamp (that's a mysql timestamp), then add 7 days worth of seconds to it. Search the archives or the web for more. If you're stuck,

Re: [PHP] weird error, might be javascript?

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 13:03:23 +0200, Angelo Zanetti [EMAIL PROTECTED] wrote: yes but even If I take the page source, its not anywhere near 597 lines long...any other ideas? Sorry forgot to mention it in initial post. How long is the JavaScript file? Look at line 597 in that file. If that also

Re: [PHP] Re: define constants within functions?

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 06:54:35 -0500, Jay Blanchard [EMAIL PROTECTED] wrote: [snip] Sure, define them outside the function :) [/snip] I have not tried this (we usually place constants in a section of the code external to any function) but are you saying that if a constant is defined within

Re: [PHP] [PHP4] class overload and ref to objects

2004-08-11 Thread Justin Patrin
The magic methods tend to screw up references in PHP4. I've turned it off completely myself. My advise is to switch to PHP5 or not use the overloading. On Wed, 11 Aug 2004 15:06:51 +0200, Alessandro Vitale [EMAIL PROTECTED] wrote: Hi all, I have encountered some troubles in trying to achieve

Re: [PHP] redirecting to another frame using php header function

2004-08-11 Thread John Holmes
bruce wrote: can anyone point me to a way to do a page redirect using the php 'Header' function to another frame. No. Use Javascript. -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Mailinglists are honey for Spammers

2004-08-11 Thread John Holmes
SPAM wrote: Currently i'm working on a php script You forgot the part where you ACTUALLY ASK A QUESTION... -- John Holmes php|architect - The magazine for PHP professionals - http://www.phparch.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] Re: Load data and Insert

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 12:49:22 -0300 (ART), Juan Pablo Herrera [EMAIL PROTECTED] wrote: Torsten Roehr [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Juan Pablo Herrera [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi! i need do two querys in one. First query

Re: [PHP] PHP/MySQL based webmail?

2004-08-11 Thread Matthew Sims
This is probably getting a little offtopic (okay, a lot and my last for today) but I'll answer what I can. Now I can't speak for Horde but I can't see how Horde would be any different than what Squirrelmail provides. Matthew Sims [EMAIL PROTECTED] writes: Uh, well...Squirrelmail is simply a

Re: [PHP] PHP/MySQL based webmail?

2004-08-11 Thread Jason Wong
On Wednesday 11 August 2004 23:01, Chris Shenton wrote: IMAP doesn't HAVE to be on the same box. You can use SM to connect to an another server running your mail. Yes. But both Squirrel and Horde must speak IMAP to the mail server, whether on localhost or remote. IMAP's nontrivial and

RE: [PHP] PHP logic - Whats going on here?

2004-08-11 Thread Ed Lazor
Wow, Michael. Nice response. -Ed -Original Message- From: Michael Sims [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 9:03 AM To: [EMAIL PROTECTED] Subject: RE: [PHP] PHP logic - Whats going on here? Kim Steinhaug wrote: [snip] For some reason the above results

RE: [PHP] Mailinglists are honey for Spammers

2004-08-11 Thread Ed Lazor
-Original Message- SPAM wrote: Currently i'm working on a php script You forgot the part where you ACTUALLY ASK A QUESTION... Hehe I wonder if this is covered in the Newbie Guide -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit:

Re: [PHP] OO Question for PHP4

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 09:14:08 -0600, Jed R. Brubaker [EMAIL PROTECTED] wrote: Hi all. As the subject suggests, I am using PHP4 and am having something going on that I don't think should be. Presume the following code class Foo { function Foo () { return Bar; You shouldn't be

Re: [PHP] Re: Date and time

2004-08-11 Thread Matthew Sims
There was a little mistake in the code I posted before, try this one: http://aidan.dotgeek.org/lib/?file=function.convert_timestamp.php Diff Fannehh [EMAIL PROTECTED] wrote in message news:[EMAIL PROTECTED] Hi, I have this date in timestamp format: $a= 20040810114155; I want to add 7

Re: [PHP] PHP/MySQL based webmail?

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 10:15:00 -0700 (PDT), Matthew Sims [EMAIL PROTECTED] wrote: [snip] Yes. But both Squirrel and Horde must speak IMAP to the mail server, whether on localhost or remote. IMAP's nontrivial and introduces more load on the web app server than -- say -- a POP-based mail

Re: [PHP] updating a frame from within php...

2004-08-11 Thread Scot L. Harris
On Wed, 2004-08-11 at 00:13, Matthew Sims wrote: hi... this probably doens't belong here.. but i'll try! i have a two frame window. when the user logs into the 'main' window, i want to be able to 'update' the 'main' window and then hte 'nav' window. some underlying vars are getting

Re: [PHP] redirecting to another frame using php header function

2004-08-11 Thread Matthew Sims
hi... can anyone point me to a way to do a page redirect using the php 'Header' function to another frame. I have a page in one frame, when the user does a submit, i want to have the app do a redirect using the 'Header' function, with the subsequent page being displayed in another frame.

Re: [PHP] PHP/MySQL based webmail?

2004-08-11 Thread Robby Russell
On Wed, 2004-08-11 at 10:38, Justin Patrin wrote: On Wed, 11 Aug 2004 10:15:00 -0700 (PDT), Matthew Sims [EMAIL PROTECTED] wrote: [snip] Yes. But both Squirrel and Horde must speak IMAP to the mail server, whether on localhost or remote. IMAP's nontrivial and introduces more load

[PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Dave Carrera
Hi List, I have a qty posted via a form field, lets say 46. In my mysql table I have two rows which I want to reduce their qty fields. 1 row has a qty of say 13 and the second has a qty of 50, making 63 in total. So I would like to say something like if $_POST[qty] is greater than row 1's qty

Re: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Jason Davidson
Yup, confused me... what is it for? J Dave Carrera [EMAIL PROTECTED] wrote: Hi List, I have a qty posted via a form field, lets say 46. In my mysql table I have two rows which I want to reduce their qty fields. 1 row has a qty of say 13 and the second has a qty of 50, making 63 in

Re: [PHP] updating a frame from within php...

2004-08-11 Thread Matthew Sims
On Wed, 2004-08-11 at 00:13, Matthew Sims wrote: hi... this probably doens't belong here.. but i'll try! i have a two frame window. when the user logs into the 'main' window, i want to be able to 'update' the 'main' window and then hte 'nav' window. some underlying vars are

Re: [PHP] updating a frame from within php...

2004-08-11 Thread John Nichel
Scot L. Harris wrote: snip Have been trying to find a way to do this myself. One idea I had to do this from within PHP was to define the nav frame as a function which would be called based on the actions in the main window. The nav frame function would use the target elements to send their

RE: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Dave Carrera
I am deving a goods in system that REQUIRES that each delivery of items be entered into raw stock separately. This is why two rows in the table have identical details like, Supplier Product name But the qtys may be diff. Ect ect Now the PREPARATION dept need to internally order the RAW STOCK

Re: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread John Holmes
Dave Carrera wrote: I have a qty posted via a form field, lets say 46. In my mysql table I have two rows which I want to reduce their qty fields. 1 row has a qty of say 13 and the second has a qty of 50, making 63 in total. So I would like to say something like if $_POST[qty] is greater than row

RE: [PHP] updating a frame from within php...

2004-08-11 Thread Ed Lazor
Have been trying to find a way to do this myself. One idea I had to do this from within PHP was to define the nav frame as a function which would be called based on the actions in the main window. The nav frame function would use the target elements to send their output to the correct

RE: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Ed Lazor
I don't think you can have a single mysql query do what you're wanting. Break it into mutiple queries. -Original Message- Hi List, I have a qty posted via a form field, lets say 46. In my mysql table I have two rows which I want to reduce their qty fields. 1 row has a qty of

RE: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Ed Lazor
I think John's right. Your schema sounds like it needs some serious work, especially if you're storing identical details with every single transaction. Go back and study relational database basics before trying to create an inventory management system or you'll end up in a world of hurt. -Ed

Re: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread John Holmes
Dave Carrera wrote: I am deving a goods in system that REQUIRES that each delivery of items be entered into raw stock separately. This is why two rows in the table have identical details like, Supplier Product name But the qtys may be diff. Ect ect Now the PREPARATION dept need to internally order

RE: [PHP] updating a frame from within php...

2004-08-11 Thread bruce
in the event the user disbales j'script, i'm looking for an alternative... in my case, it should be pretty easy, because i'm looking to reload the entire page into the _top/parent frame/window. however, when i send the header, it gets interpreted as reloading in the same frame. which is not what

Re: [PHP] PHP logic - Whats going on here?

2004-08-11 Thread Jason Wong
On Thursday 12 August 2004 01:26, Ed Lazor wrote: Wow, Michael. Nice response. Could we please trim our posts? Thank you. -- Jason Wong - Gremlins Associates - www.gremlins.biz Open Source Software Systems Integrators * Web Design Hosting * Internet Intranet Applications Development *

RE: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Dave Carrera
Sort of... Here is a sort of layout of my table data: Id | prodname | qty | datein 1 toy1332004-08-11 13:41:26 2 toy2122004-08-11 14:41:26 3 toy1162004-08-11 15:41:26 4 toy3222004-08-11 16:41:26 This is what I mean by rows, maybe wrong

RE: [PHP] Adjust two or more mysql rows ?

2004-08-11 Thread Jason Davidson
Multiple queries are going to be in order as mentioend i beleive, also, as mentioned, you may want to put some relational db design into practice here, im not sure how big your table is going to be, but its going to have a lot of same data in it.. how about table products id INT AUTO_INCREMENT

RE: [PHP] updating a frame from within php...

2004-08-11 Thread Ed Lazor
-Original Message- in the event the user disbales j'script, i'm looking for an alternative... There is none. Assuming the client has disabled everything on their end means you only have HTML to work with in presenting content. Are you understanding this concept? Btw, I forgot to

RE: [PHP] PHP logic - Whats going on here?

2004-08-11 Thread Ed Lazor
-Original Message- Wow, Michael. Nice response. Could we please trim our posts? Thank you. Sorry. Thought I'd sent it to him only. -Ed -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] updating a frame from within php...

2004-08-11 Thread John Nichel
bruce wrote: in the event the user disbales j'script, i'm looking for an alternative... in my case, it should be pretty easy, because i'm looking to reload the entire page into the _top/parent frame/window. however, when i send the header, it gets interpreted as reloading in the same frame. which

RE: [PHP] updating a frame from within php...

2004-08-11 Thread Matthew Sims
in the event the user disbales j'script, i'm looking for an alternative... You can't substitute PHP for javascript. Their functionalities are completely different. in my case, it should be pretty easy, because i'm looking to reload the entire page into the _top/parent frame/window. however,

[PHP] Creating plotted graphs on the fly

2004-08-11 Thread Ryan C . Spaulding
Hi, I wanted to know if there is way with PHP to take a bunch of data points and create a plotted graph image (jpg, gif or png). The data points would be inputed into a web form and then the data points would be plotted on a graph once the user submitted the information. Any help would be

RE: [PHP] Creating plotted graphs on the fly

2004-08-11 Thread Jay Blanchard
[snip] I wanted to know if there is way with PHP to take a bunch of data points and create a plotted graph image (jpg, gif or png). The data points would be inputed into a web form and then the data points would be plotted on a graph once the user submitted the information. [/snip]

[PHP] problem with mysql_fetch_array

2004-08-11 Thread Deepak Dhake
i am trying to print some values from a table with using mysql_fetch_array in a loop but not able to get correct values. it works fine for the loop i=0, prints all desired values but when it bocomes i=1 and starts the loop again the result values gets reset and prints the same old values. for

Re: [PHP] problem with mysql_fetch_array

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 17:13:49 -0400, Deepak Dhake [EMAIL PROTECTED] wrote: i am trying to print some values from a table with using mysql_fetch_array in a loop but not able to get correct values. it works fine for the loop i=0, prints all desired values but when it bocomes i=1 and starts the

Re: [PHP] File Upload Problems

2004-08-11 Thread Mark Collin
(Sorry if this is a repost, had some problems with my news client not sending properly) Thanks for the pointers Raditha, unfortunately I still can't get it working. I have been banging away at this for a few days now, and I currently have the following my script: ini_set(max_execution_time,

[PHP] learning to right objects

2004-08-11 Thread Blake Schroeder
I am trying to change some of my functions in to classes and objects. I have been checking out the php.net and google and still not grasping the concept. here is my example all I am trying to do is print 2 numbers to the browser that are randomly generated from dieRolls. Thanks in advance

Re: [PHP] File Upload Problems

2004-08-11 Thread Justin Patrin
On 11 Aug 2004 21:30:38 -, Mark Collin [EMAIL PROTECTED] wrote: (Sorry if this is a repost, had some problems with my news client not sending properly) Thanks for the pointers Raditha, unfortunately I still can't get it working. I have been banging away at this for a few days now, and

Re: [PHP] learning to right objects

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 16:35:33 -0500, Blake Schroeder [EMAIL PROTECTED] wrote: I am trying to change some of my functions in to classes and objects. I have been checking out the php.net and google and still not grasping the concept. here is my example all I am trying to do is print 2 numbers

Re: [PHP] learning to right objects

2004-08-11 Thread Blake Schroeder
Justin Thank you now I have a working example to go from. Justin Patrin wrote: On Wed, 11 Aug 2004 16:35:33 -0500, Blake Schroeder [EMAIL PROTECTED] wrote: I am trying to change some of my functions in to classes and objects. I have been checking out the php.net and google and still not

Re: [PHP] Creating plotted graphs on the fly

2004-08-11 Thread Ryan C . Spaulding
Thank you On Aug 11, 2004, at 1:25 PM, Jay Blanchard wrote: [snip] I wanted to know if there is way with PHP to take a bunch of data points and create a plotted graph image (jpg, gif or png). The data points would be inputed into a web form and then the data points would be plotted on a graph

[PHP] scan a text string to pick up certain words

2004-08-11 Thread Alex Shi
Hi All, I guess regex can do the trick but I don't know much about regex :(( Here is what I want: Say a text string in which there're several words enclosed by { and }, for example {hellow}. I need to pick up each of the words like this and print them or do some processing one by one. Can any

Re: [PHP] scan a text string to pick up certain words

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 18:07:57 -0400, Alex Shi [EMAIL PROTECTED] wrote: Hi All, I guess regex can do the trick but I don't know much about regex :(( Here is what I want: Say a text string in which there're several words enclosed by { and }, for example {hellow}. I need to pick up each of the

[PHP] RE: MySQL PHP Examples Training Providers Required

2004-08-11 Thread Lukasz Karapuda
Michael, My company has recently developed a Web site module for a local manufacturing company. The Web site module is a PHP and MySQL application composed of several screens and advanced engineering functionality (graphing, calculations etc). One of the database tables for the application has

[PHP] Netegrity's siteminder + PHP + Apache

2004-08-11 Thread Saqib . N . Ali
Hello All, Does anyone of any good documentation for compiling Netegrity's Siteminder module with Apache for use in a PHP based application? Thanks. Saqib Ali http://validate.sf.net XHTML/DocBook XML Validator and Transformer

Re: [PHP] RE: MySQL PHP Examples Training Providers Required

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 18:20:23 -0400, Lukasz Karapuda [EMAIL PROTECTED] wrote: Michael, My company has recently developed a Web site module for a local manufacturing company. The Web site module is a PHP and MySQL application composed of several screens and advanced engineering functionality

Re: [PHP] scan a text string to pick up certain words

2004-08-11 Thread Alex Shi
It works the way as supposed :) Thanks! On Wed, 11 Aug 2004 18:07:57 -0400, Alex Shi [EMAIL PROTECTED] wrote: Hi All, I guess regex can do the trick but I don't know much about regex :(( Here is what I want: Say a text string in which there're several words enclosed by { and }, for

[PHP] Escaping quotes

2004-08-11 Thread Alex Hogan
Hi All, I have this expression; $query = INSERT INTO $table (%s) VALUES (%s); $query = sprintf($query, implode(,, $fld), implode(,, $val)); $result = mssql_query($query) or die($errmsg); I am trying to insert values from an array into the database. I

Re: [PHP] Escaping quotes

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 19:03:32 -0500, Alex Hogan [EMAIL PROTECTED] wrote: Hi All, I have this expression; $query = INSERT INTO $table (%s) VALUES (%s); $query = sprintf($query, implode(,, $fld), implode(,, $val)); $result = mssql_query($query) or

Re: [PHP] PHP/MySQL based webmail?

2004-08-11 Thread Hardik Doshi
Hi Chris, Horde is little bit heavier than Squirrelmail. You can buy a Zend acclerator to speed up the things. I think your community is not that big and Horde works fine in our organization where we have 1000 users and all are pretty active. Look and feel matters in the web mail so before you

Re: [PHP] PHP/MySQL based webmail?

2004-08-11 Thread Justin Patrin
On Wed, 11 Aug 2004 18:25:34 -0700 (PDT), Hardik Doshi [EMAIL PROTECTED] wrote: Hi Chris, Horde is little bit heavier than Squirrelmail. You can buy a Zend acclerator to speed up the things. You can also get the free TurckMMCache to cache the parsed PHP files. I think your community is

[PHP] Query Question

2004-08-11 Thread Karl-Heinz Schulz
Why does this query not work? It should only show the eventdetails for the shown event. - ?php $event = mysql_query(select id, information from event where id=.$id); ? ?php

Re: [PHP] Query Question

2004-08-11 Thread Jason Davidson
whats the error, are there any matching fields for the columns eventetail.event and event.id? Jason Karl-Heinz Schulz [EMAIL PROTECTED] wrote: Why does this query not work? It should only show the eventdetails for the shown event.

Re: [PHP] Escaping quotes

2004-08-11 Thread Tom Rogers
Hi, Thursday, August 12, 2004, 10:03:32 AM, you wrote: AH Hi All, AH I have this expression; AH $query = INSERT INTO $table (%s) VALUES (%s); AH $query = sprintf($query, implode(,, $fld), implode(,, AH $val)); AH $result = mssql_query($query) or die($errmsg); AH

RE: [PHP] Query Question

2004-08-11 Thread Karl-Heinz Schulz
I found my problem. $eventdetail_query = mysql_query(select DISTINCT titles, informations, file_name from eventdetail, event where eventdetail.event = .$id); -Original Message- From: Karl-Heinz Schulz [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 10:13 PM To: 'Jason

[PHP] Encoding

2004-08-11 Thread Kevin
How can I encode my string using my own key? Is there any method to do this? i.e. using base64_encode() and convert_uuencode() functions? -- Kevin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

  1   2   >