Re: [PHP-DB] Set Logout Time for No Activity

2002-12-20 Thread Ignatius Reilly
Another possibility is after each page call to rewrite the client's cookie's validity to, say, current time + 1800s: session_start() ; setcookie( session_name(), session_id(), time()+1800, / ) ; ob_start() ; // etc. If the user does not call a page for more than 30', the cookie will be

RE: [PHP-DB] extracting data

2002-12-20 Thread Edward Peloke
Ok, I am lost now, I am just trying to read the documentation on odbc...here is what I have so far. This seems to work...or at least not give any errors. How do I know get to the result set in the select statement to move this data somewhere else? I just want to get the entire result set so I can

[PHP-DB] form validation

2002-12-20 Thread Mignon Hunter
Hello list, I am developing a db form that gets passed to another form. I need to validate the fields in form(1), before passing on. The form action posts to form(2), so that upon hitting submit - form(2) shows up in browser...(the only way I know how to do this). I am trying to use php to

RE: [PHP-DB] extracting data

2002-12-20 Thread SELPH,JASON (HP-Richardson,ex1)
Andrew is correct about iodbc. As soon as they write an allbase connector I will be all over it. Here is a function I use to facilitate working with odbc function odbc_fetch_into_array($rs) { $result = array(); if (!odbc_fetch_row($rs)) return false; $numfields = odbc_num_fields($rs);

Re: [PHP-DB] form validation

2002-12-20 Thread Jason Wong
On Friday 20 December 2002 22:25, Mignon Hunter wrote: Hello list, I am developing a db form that gets passed to another form. I need to validate the fields in form(1), before passing on. The form action posts to form(2), so that upon hitting submit - form(2) shows up in browser...(the

Re: [PHP-DB] form validation

2002-12-20 Thread Ignatius Reilly
Hi Mignon, it is really quite simple: you can pack several screens (each containing for instance a form) in a same script. each form contains a hidden field, say selector now, the script begins by a switch: if ( isset( $_POST['submit'] ) ) { switch ( $selector ) { // Switch 1: process the

Re: [PHP-DB] form validation

2002-12-20 Thread Mignon Hunter
Thanks for your suggestions. I can see the pros and cons of each. I will give each some thought and decide the best way to go. Thx Mignon On Fri, 2002-12-20 at 08:41, Jason Wong wrote: On Friday 20 December 2002 22:25, Mignon Hunter wrote: Hello list, I am developing a db form that

[PHP-DB] Next/Prev 10 lines

2002-12-20 Thread Steve Dodkins
Has anyone got some code that will correctly display the next 10 line of a table with prev and next working? Or point me in the right direction for help? Regards Steve Dodkins IMPORTANT NOTICE The information in this e-mail is confidential and should only be read by those persons to whom it is

Re: [PHP-DB] Next/Prev 10 lines

2002-12-20 Thread Jason Wong
On Friday 20 December 2002 23:16, Steve Dodkins wrote: Has anyone got some code that will correctly display the next 10 line of a table with prev and next working? Or point me in the right direction for help? Search the archives. This kind of question gets asked (and sometimes answered) every

RE: [PHP-DB] Next/Prev 10 lines

2002-12-20 Thread Cal Evans
check out php.weblogs.com ADODB does this for you. =C= * * Cal Evans * The Virtual CIO * http://www.calevans.com * -Original Message- From: Steve Dodkins [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 9:16 AM To: [EMAIL PROTECTED] Subject: [PHP-DB] Next/Prev 10 lines Has

RE: [PHP-DB] Next/Prev 10 lines

2002-12-20 Thread Hynek Semecký ME
First you have to find how many rows would make your SELECT query in case you would not use LIMIT from, num. Then you have to divide this by number of rows per page and use it in the SELECT query. Then to your number of pages displayed on your page you add links to the first number of the LIMIT

RE: [PHP-DB] Theory help needed

2002-12-20 Thread José Moreira
http://users.starpower.net/rjhalljr/Serve/MySQL/traer.html -Mensagem original- De: Cal Evans [mailto:[EMAIL PROTECTED]] Enviada: sexta-feira, 20 de Dezembro de 2002 5:07 Para: Chris Payne; [EMAIL PROTECTED] Assunto: RE: [PHP-DB] Theory help needed Read today's thread about trees.

[PHP-DB] net cafe software

2002-12-20 Thread Chris Barnes
Hi, I'm looking for some net cafe style software written in PHP, which would preferably use MySQL if it must use a database, which can track the data each client downloads instead of tracking the amout of time the client is online. Ideally the software would distinguish one client from another by

RE: [PHP-DB] Theory help needed

2002-12-20 Thread Boaz Yahav
why not use one of the existing forum software? phorum? FUDForum? Sincerely berber Visit http://www.weberdev.com/ Today!!! To see where PHP might take you tomorrow. -Original Message- From: Chris Payne [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 6:24 AM To: [EMAIL

Re: [PHP-DB] Theory help needed

2002-12-20 Thread Chris Barnes
i'm not experienced so this is just a theory. if you have a parent id field in your tables then each reply would have the parent id of the original message they replied to, so when your program gets the data it will get the original message, and then get any other messages with the same parent

[PHP-DB] Newbie PHP/MySQL question

2002-12-20 Thread Matt Matijevich
I am just getting started with php an mysql. When I try to insert a record php get stuck in some kind of loop and about 25 records are created. Any help would be greatly appreciated. Windows 2000 server latest service pack. PHP 4.2.3 MySql 3.23 IIS 5.0 -- PHP Database Mailing List

Re: [PHP-DB] Newbie PHP/MySQL question

2002-12-20 Thread Jason Wong
On Saturday 21 December 2002 01:11, Matt Matijevich wrote: I am just getting started with php an mysql. When I try to insert a record php get stuck in some kind of loop and about 25 records are created. Any help would be greatly appreciated. Windows 2000 server latest service pack. PHP

RE: [PHP-DB] Newbie PHP/MySQL question

2002-12-20 Thread NIPP, SCOTT V (SBCSI)
I would say his problem is the IIS 5.0. Switch to some non-MS operating system running Apache as a web server and that should clear up your problems. :) -Original Message- From: Jason Wong [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 11:24 AM To: [EMAIL PROTECTED]

RE: [PHP-DB] Newbie PHP/MySQL question

2002-12-20 Thread Matthew Moldvan
lol ... sorry but that was just funny :-D Regards, Matthew Moldvan --- System Administrator Trilogy International, Inc http://www.trilogyintl.com/ecommerce/ --- -Original Message- From: Jason Wong

RE: [PHP-DB] Theory help needed

2002-12-20 Thread Matthew Moldvan
I would recommend phpBB ... very useful and best of all, FREE! :) http://www.phpBB.com -Original Message- From: Boaz Yahav [mailto:[EMAIL PROTECTED]] Sent: Friday, December 20, 2002 12:02 PM To: Chris Payne; [EMAIL PROTECTED] Subject: RE: [PHP-DB] Theory help needed why not use one

[PHP-DB] Feliz Natal .:. Happy Christmas

2002-12-20 Thread José Moreira
José Moreira TEGOPI S.A. http://www.tegopi.pt *--- Feliz natal e excelente Ano Novo Merry Christmas and a joly New Year -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Threading

2002-12-20 Thread Chris Payne
Hi there everyone, Thanks to everyone for their tips and advice on the threading issue. I really don't want to use other software because I want to learn from doing it in my own software, so i'm going to take apart from i've done so far and play and see what I can do, if you see a guy crying

[PHP-DB] Aliasing and Grouping (multiple keyword search)

2002-12-20 Thread Kevin Stone
I followed an online tutorial (url below) to create a simple indexed keyword search. The sample as outlined in the tutorial was designed to work with one keyword only. I am an experienced PHP programmer with some SQL experience but only simple queries. This Aliasing and Grouping is brand new to

Re: [PHP-DB] Newbie PHP/MySQL question

2002-12-20 Thread Seabird
LOL, Jason, you actually had me go back to the first post to re-read it for a link or some code... good skills there Jason, Jacco -- http://seabird.jmtech.ca Attitude is Everything! But Remember, Attitudes are Contagious! Is Yours worth Catching Jason Wong [EMAIL PROTECTED] wrote in message

Re: [PHP-DB] form validation

2002-12-20 Thread Manuel Lemos
Hello, On 12/20/2002 12:25 PM, Mignon Hunter wrote: I am developing a db form that gets passed to another form. I need to validate the fields in form(1), before passing on. The form action posts to form(2), so that upon hitting submit - form(2) shows up in browser...(the only way I know how to

[PHP-DB] file upload array problem

2002-12-20 Thread Seabird
Hi everyone, every time I try to upload a picture I get the same problem in return. First of all, it's not being uploaded (but this is for later concern I'm afraid). Trying to display the info of the (not)uploaded file should be done with: $_FILES['picture']['name'] but every time I run this