Re: [PHP] handling a user pressing browser's back button

2005-04-26 Thread James
I apologize in advance if I'm asking basic questions... When you hit the back button, won't the browser just take the page from the cache? I haven't switched my POSTs to GETs and this is what I'm seeing. I have a list of images. There are check boxes next to the images. When the user checks ima

[PHP] how to read a specific "cell"

2005-04-26 Thread Sebastien Pahud
Hello, I cannot figure out how to read a specific "cell" in a result i got from a SQL request. I have a SQL request on a database: SELECT nameAttribute, fr, de, en FROM traduction WHERE nameTable = 'whatever' AND idTable = 1 ORDER BY nameAttribute and i am suppose to get something like this : ---

Re: [PHP] how to read a specific "cell"

2005-04-26 Thread Brian V Bonini
On Tue, 2005-04-26 at 17:05, Sebastien Pahud wrote: > Hello, > > I cannot figure out how to read a specific "cell" in a result i got from > a SQL request. > > I have a SQL request on a database: > SELECT nameAttribute, fr, de, en > FROM traduction > WHERE nameTable = 'whatever' > AND idTable = 1

[PHP] gettext - multi text domains ?

2005-04-26 Thread Eli
Hi, I haven't yet started with gettext, but I consider to use it. Is it possible to use several text domains of gettext together? For example: I got 2 basic GUIs with their own text domains. I want to combine both the GUIs together, so is it possible to use the text domains of both the GUIs simul

Re: [PHP] handling a user pressing browser's back button

2005-04-26 Thread James
Ok Greg: I changed everything to GET and it's behaving better! Thanks. I guess when the user clicks the back button they should just get back the last state of the browser...no if, and or but's. -James At 1:59 PM -0500 4/26/05, Greg Donald wrote: On 4/26/05, James <[EMAIL PROTECTED]> wrote: Wha

Re: [PHP] how to read a specific "cell"

2005-04-26 Thread Sebastien Pahud
Brian V Bonini wrote: On Tue, 2005-04-26 at 17:05, Sebastien Pahud wrote: Hello, I cannot figure out how to read a specific "cell" in a result i got from a SQL request. I have a SQL request on a database: SELECT nameAttribute, fr, de, en FROM traduction WHERE nameTable = 'whatever' AND idTable

RE: [PHP] handling a user pressing browser's back button

2005-04-26 Thread Warren Vail
> > I changed everything to GET and it's behaving better! Thanks. > > I guess when the user clicks the back button they should just get > back the last state of the browser...no if, and or but's. This is because when you click the back button on the browser it pulls up the URL from it's histo

RE: [PHP] how to read a specific "cell"

2005-04-26 Thread David Tucker
I would do it like this : if (mysql_data_seek($result, $rownum)) $a_row = mysql_fetch_row($result); echo $a_row[$column_int]; --Codefox -Original Message- From: Sebastien Pahud [mailto:[EMAIL PROTECTED] Sent: Tuesday, April 26, 2005 5:52 PM To: php-general@lists.php.net Subject

Re: [PHP] Any clever ideas on how to find some random records?

2005-04-26 Thread Jochem Maas
David Tucker wrote: [OP] I have a MySQL database with about a million records. I'd like to use the SQL command "order by RAND()" but my ISP won't let me: whenever the server gets spidered, Google overloads their MySQL server because of all the overhead of that command. I can't just cloak the spider

Re: [PHP] how to read a specific "cell"

2005-04-26 Thread Joseph Connolly
seb, it would help to post the actual table structure jozef Sebastien Pahud wrote: Hello, I cannot figure out how to read a specific "cell" in a result i got from a SQL request. I have a SQL request on a database: SELECT nameAttribute, fr, de, en FROM traduction WHERE nameTable = 'whatever' A

[PHP] [SOLVED] Re: [PHP] how to read a specific "cell"

2005-04-26 Thread Sebastien Pahud
Thanks David, Exactly what i was looking for ! Seb David Tucker wrote: I would do it like this : if (mysql_data_seek($result, $rownum)) $a_row = mysql_fetch_row($result); echo $a_row[$column_int]; --Codefox -Original Message- From: Sebastien Pahud [mailto:[EMAIL PROTECTED] Sent: Tu

Re: [PHP] strtotime() lost precision?

2005-04-26 Thread Jochem Maas
Mario de Frutos Dieguez wrote: Hi! I'm back hahaha :D I'm making functions to calculate the duration (only laboral days) between 2 dates and the initial and final date between a duration give me in laboral days. I use the following function to make the diference between 2 dates: function fecDife

Re: [PHP] how to read a specific "cell"

2005-04-26 Thread Stuart Nielson
Sebastian, just a guess, but maybe when you do $table['de'] it is assuming the first element in the array. i.e. $table['de'][0]. Perhaps if you tried $table['de'][2] it might work. Just an idea. Also, how does your code look to convert the result set to an array? That might help to decipher wha

[PHP] Re: Any clever ideas on how to find some random records?

2005-04-26 Thread Brian Dunning
That's great, thanks! -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Re: phpclasses formerly Flash integration

2005-04-26 Thread Manuel Lemos
Hello, on 04/26/2005 03:25 PM Ryan A said the following: several classes that provide different kinds of Flash integration: http://www.phpclasses.org/browse/class/102.html > >>>True, but going there has become a real pain in the ...you know where >>>coz you get a crapload of popups, > > >>

[PHP] Getting Credit card details

2005-04-26 Thread Ross
Here's what I want to do.. I want to take Credit card details from customers number, expiry, security number and send them to my client who will put these through his card terminal in his place of business. Any suggestions how to do this? Secure Email, SSL any ideas will be gratefully

[PHP] Re: phpclasses formerly Flash integration

2005-04-26 Thread Ryan A
On 4/27/2005 1:29:02 AM, Manuel Lemos ([EMAIL PROTECTED]) wrote: > Hello, Hi, Thanks for replying. I know I can take you up on a number of points that you have written that just dont add up, for example: "It is not a matter of greed but rather of keeping the site open dedicating full time to it

Re: [PHP] Getting Credit card details

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 5:10 pm, Ross said: > Here's what I want to do.. No, you just *THINK* you want to do that :-) > I want to take Credit card details from customers number, expiry, > security number and send them to my client who will put these through his > card terminal in his place

Re: [PHP] how to read a specific "cell"

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 2:05 pm, Sebastien Pahud said: \> I cannot figure out how to read a specific "cell" in a result i got from > a SQL request. http://php.net/mysql_result You don't want to use that a hundred times instead of mysql_fetch_row, but it's fine for what you want. If you are only g

[PHP] JavaScript - object property

2005-04-26 Thread Eli
Hi, I know this is not the forum, but I googled and couldn't find it, so please try to help me with this. /*/ function MyCls(name) { this.name=name; } function SayHi() { alert('Hi, '+this.name+'!'); } var obj=new MyCls('PHP'); obj.name='JavaScript'; //this will call SayHi() functio

[PHP] Re: handling a user pressing browser's back button

2005-04-26 Thread Matthew Weier O'Phinney
* James <[EMAIL PROTECTED]>: > Currently I have an application with PHP scripts that passes POST > variables to keep track of ID's of records, the processing mode and > such. > > I totally didn't design it to handle when a user hits the Back button > in the browser...everything is tightly contro

[PHP] php class that allow quick row ordering

2005-04-26 Thread Graham Anderson
hi 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 :( Is there a php class out there that allows you to arbitrarily order rows in a found setgraphically ?

Re: [PHP] handling a user pressing browser's back button

2005-04-26 Thread Matthew Weier O'Phinney
* James <[EMAIL PROTECTED]>: > I apologize in advance if I'm asking basic questions... > > When you hit the back button, won't the browser just take the page > from the cache? > > I haven't switched my POSTs to GETs and this is what I'm seeing. > I have a list of images. There are check boxes nex

Re: [PHP] handling a user pressing browser's back button

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 11:51 am, James said: > What have people done in the past to deal with states and such and > keeping these things straight when the user hits the BACK button? Best Option: Don't design your application like that :-) People use the browsers they use because they like its fea

Re: [PHP] Can this code go faster?

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 9:56 am, René Fournier said: > I've looked in the docs and don't see anything for this per se... > I need to convert a binary number of arbitrary length to a signed > integer. No matter what you do, a PHP integer is going to be 32-bit. So "artbitrary length" is not gonna ha

Re: [PHP] Any clever ideas on how to find some random records?

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 7:55 am, Brian Dunning said: > I have a MySQL database with about a million records. I'd like to use > the SQL command "order by RAND()" but my ISP won't let me: whenever > the server gets spidered, Google overloads their MySQL server because > of all the overhead of that

Re: [PHP] PHP safe_mode

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 6:48 am, kioto said: > Hi all i have problem with safe_mode i don't understand the logic to > apply to avoid owners > problem with script. > Can you step by step ho to solve ? http://php.net/features.safe-mode may have your answer. Be sure to read the User Contributed note

Re: [PHP] Show data in two columns

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 3:11 am, Amir Mohammad Saied said: > i want to extract the data from my DB (it's an articles database) and > want to show them in 2 columns way, like zend.com's articles section, > could any one help me? Do you want them in column order or row order? (left-right or up-down)

Re: [PHP] PHP Designer 2005

2005-04-26 Thread Richard Lynch
On Mon, April 25, 2005 7:43 pm, The Disguised Jedi said: > another process tries to do something, phpDesigner shrinks into the > background, and uses almost no CPU, only to crawl back up to 100% after > the > other process is finished. Not to be alarmist, but that almost sounds like some kind of w

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] Re: handling a user pressing browser's back button

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 7:02 pm, Matthew Weier O'Phinney said: > 1. Display form on page 1. Page 1 has Cache-Control: no-cache header. > 2. User submits form to page 2 > 3. Page 2 processes form, stores required variables in session, and then >redirects to page 3. > 4. Page 3 displays results (s

Re: [PHP] JavaScript - object property

2005-04-26 Thread Richard Lynch
On Tue, April 26, 2005 7:51 pm, Eli said: > I know this is not the forum, but I googled and couldn't find it, so > please try to help me with this. > > /*/ > function MyCls(name) > { > this.name=name; > } > function SayHi() > { > alert('Hi, '+this.name+'!'); > } > var obj=new MyCls(

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/

[PHP] component template questions

2005-04-26 Thread Evert | Rooftop
Hi folks, I'm working on a component system for php forms and all, and I'm wondering about an issue I have. I have a few ideas on how to fix this problem, but I would like to hear your oppinions about it. These are my classes: Component FormElement extends Component ComboBox extends FormElement Int

[PHP] Product details not being displayed, based on passed id

2005-04-26 Thread Mark Sargent
Hi All, this page, http://webmonkey.wired.com/webmonkey/99/21/index3a_page3.html?tw=programming has code that is supposed to pass an id via the url string to the same page, and display info of a particular product, based on the id being passed. Everything works fine, until I click the link, and i

[PHP] Dates problem

2005-04-26 Thread Mario de Frutos Dieguez
Hi! I have a problem with dates. I have a function that sum a duration in laboral days to an initial date. The problem come when the function reaches the last sunday of October, the data remains in the last sunday of October and make an infinite loop. The functions works fine i have test in all

Re: [PHP] Dates problem

2005-04-26 Thread Petar Nedyalkov
On Wednesday 27 April 2005 09:17, Mario de Frutos Dieguez wrote: > Hi! > > I have a problem with dates. I have a function that sum a duration in > laboral days to an initial date. The problem come when the function > reaches the last sunday of October, the data remains in the last sunday > of Octob

Re: [PHP] component template questions

2005-04-26 Thread Petar Nedyalkov
On Wednesday 27 April 2005 08:34, Evert|Rooftop wrote: > Hi folks, > > I'm working on a component system for php forms and all, and I'm > wondering about an issue I have. I have a few ideas on how to fix this > problem, but I would like to hear your oppinions about it. > > These are my classes: > >

<    1   2