Re: [PHP] php class that allow quick row ordering

2005-05-02 Thread Jochem Maas
Graham Anderson wrote: Hi I am allready using a 'rank' field now... with 1 to N :) There are just so damned many of them to order manually the up/down button solution...is there a tutorial or php class out there I could take a look at... where you: give the class a query... the up and down link

Re: [PHP] php class that allow quick row ordering

2005-04-26 Thread Graham Anderson
Hi I am allready using a 'rank' field now... with 1 to N :) There are just so damned many of them to order manually the up/down button solution...is there a tutorial or php class out there I could take a look at... where you: give the class a query... get a found set back as html with these up/

Re: [PHP] php class that allow quick row ordering

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 7:05 pm, Graham Anderson said: > lately, I'm finding myself reordering large amounts of rows populated > from a database query ...with an order_id field > this is a bit tedious re-entering every order_id for a found set :( Do different users get to order differently, or is

Re: [PHP] PHP Class

2004-10-12 Thread Brent Clements
GD is your friend for images with php. If your asking how to access java classes from PHP you may want to visit http://www.php.net/manual/en/ref.java.php -Brent - Original Message - From: "Mulley, Nikhil" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, October 12, 2004 11:28 P

Re: [PHP] PHP Class ArrayQueue (2)

2003-10-16 Thread Marek Kilimajer
You need to read manual section about object oriented programing in php: http://www.php.net/oop Antonio Bologna wrote: Sorry, here it is the code: /* Trying to use queues in PHP, let * see if that works. */ class ArrayQueue { var $theArray = array(); var $currentSize; var $front; var $back

Re: [PHP] PHP class and extends

2003-09-24 Thread Burhan Khalid
BENARD Jean-philippe wrote: [ snip ] Is there something to do in order that when I use xxx_cl_app->ExecuteQuery(), there's a function ExecuteQuery() in xxx_cl_app that do something like this : (xxx_cl_app.php) function ExecuteQuery(x,y) { $tmpResult = [herited_class]->ExecuteQuery(x,y);

RE: [PHP] PHP class and extends

2003-09-23 Thread Golawala, Moiz M (IndSys, GE Interlogix)
You can do one of 2 things. 1. You can comment out the ExecuteQuery Function in the child class. 2. When you call the function in the child class simply call it as Parent::ExecuteQuery. This way php will know what function you are trying to call. cheers Moiz -Original Message- From:

Re: [PHP] PHP Class for IP CIDR notation

2003-06-06 Thread Mark
Here's a quick function of the top of my head. I'm not sure if x.x.0.x or x.0.x.x are valid IP addresses. Adjust as necessary. 255) { echo "First octet of IP address cannot exceed 255"; return false; } $ip_list[]=implode(".",$octet); } return $ip_list; } $arr=cidr("192.1

Re: [PHP] PHP - class question

2002-08-14 Thread Mark Armendariz
Do you know where I can find more info on how to use the scope resolution operator? My searches aren't giving much (at leant not mcuh regarding php) and in the manual, it only shows up momentarily as a note in the operators section... Mark "Nick Oostveen" <[EMAIL PROTECTED]> wrote in message

Re: [PHP] PHP - class question

2002-08-14 Thread Mark Armendariz
That seems more like what I'm looking for.. Thank you, Nick... Mark "Nick Oostveen" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > If you are just trying to access a classes functions without creating an > instance of it you're probably looking to use the

Re: [PHP] PHP - class question

2002-08-14 Thread Mark Armendariz
Well, I actually have a full db class which has a connect and close method as well as query, fetch_array, etc... What I really want to know is how to use the methods in my db class from another class (myclass for example).. Do I include the db class from the myclass constructor and then set a my

Re: [PHP] PHP - class question

2002-08-14 Thread Nick Oostveen
If you are just trying to access a classes functions without creating an instance of it you're probably looking to use the scope resolution operator ::. For this to work all you have to do is ensure that the definition for the class you wish to use is included into the file containing the clas

RE: [PHP] PHP - class question

2002-08-14 Thread Steve Bradwell
I would suggest you write a method (called mydb() for example) that connects to your database, and if needed, call it from your constructor like: $this->mydb(); This way you can always reuse the method from other code. hth, Steve. -Original Message- From: Mark Armendariz [mailto:[EMAIL P

Re: [PHP] PHP class

2001-06-20 Thread Chris Lee
I havent used them in php/pear but here is some more info http://www.php.net/manual/en/class.pear.php -- Chris Lee [EMAIL PROTECTED] "Martín Marqués" <[EMAIL PROTECTED]> wrote in message 01062015390800.12018@bugs">news:01062015390800.12018@bugs... > Can we dream of having destructors in c