Re: [PHP-DB] Number Conversion

2002-10-18 Thread Marco Tabini
number_format(): http://ca.php.net/manual/en/function.number-format.php On Thu, 2002-10-17 at 14:52, Manoj Japher wrote: hi, I would like to format my output. I would like to represent my integer outputs as 2,000 instead of 2000 which it prints by default. For e.g. I want 200 to

RE: [PHP-DB] Number Conversion

2002-10-18 Thread Ryan Jameson (USA)
http://www.php.net/manual/en/function.number-format.php number_format($number); Ryan -Original Message- From: Manoj Japher [mailto:manojjapher;rediffmail.com] Sent: Thursday, October 17, 2002 12:52 PM To: [EMAIL PROTECTED] Subject: [PHP-DB] Number Conversion hi, I would like to

Re: Re: [PHP-DB] Number Conversion

2002-10-18 Thread Manoj Japher
hi, thanks ryan, marco and matias for your quick response. Solved my problem. Thanks once again. Best Regards, Manoj On Fri, 18 Oct 2002 Marco Tabini wrote : number_format(): http://ca.php.net/manual/en/function.number-format.php On Thu, 2002-10-17 at 14:52, Manoj Japher wrote: hi, I

[PHP-DB] f

2002-10-18 Thread rolf vreijdenberger
f -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] Re: DBF question: column names?

2002-10-18 Thread Jorge Albores
Hi, You can open the DBF file in Excel and the first column is the name, so if you want to know the structure you can use DBU.exe that is included in clipper. Suzerain.Studios [EMAIL PROTECTED] escribió en el mensaje news:a05111a52b9c64fa4b608;[192.168.2.5]... Hi there. I'm not familiar with

[PHP-DB] Calendar

2002-10-18 Thread Joran
Hi! Im new to PHP programming and need some help, I want to put an event calendar on my site... Functions I would like: Customizeable, so i can make it fit my design Calendar view: A small month view on the side with clickabel days to view the event for that day. Event view: Date, time, event

[PHP-DB] Re: f

2002-10-18 Thread rolf vreijdenberger
sorry about the message, I accidently sent it -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP-DB] MS Access

2002-10-18 Thread Steve Dodkins
Hi Has anyone got a sample script that updates/adds and deletes records on an ms access database or can point me to a resource that will have one? 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

[PHP-DB] Manioulating a Flat File

2002-10-18 Thread Davon
Hi: I am new to this list. Maybe this has been covered here already several time, and if it has I apologize. I tried searching, but it yielded nothing. Here's what I'd like to know: Is there a PHP function for easily finding and removing a line from a flat file of data. And, if not, is

[PHP-DB] Re: Calendar

2002-10-18 Thread Jøran Sørbø
Thank you all for your help :) I found a script that needs som rewriteng (got permission to:) ) Chers :) Joran [EMAIL PROTECTED] wrote in message news:20021017103821.13351.qmail;pb1.pair.com... Hi! Im new to PHP programming and need some help, I want to put an event calendar on my site...

[PHP-DB] welp! having problems with flash display

2002-10-18 Thread Yonatan Ben-Nes
Hi all, im trying to retrieve data from my db (postgresql) and display it (an ad). now when i don't try to enter it to a display code of flash (embed src=... and so on) it display the flash fine just in the biggest proportion it can get and it overwrite on the rest of the html. when i tried to

RE: [PHP-DB] Calendar

2002-10-18 Thread Gary . Every
Check out http://www.hotscripts.com and click on PHP, then Calendars Gary Every Sr. UNIX Administrator Ingram Entertainment (615) 287-4876 Pay It Forward mailto:gary.every;ingramentertainment.com http://accessingram.com -Original Message- From: Joran [mailto:joran.sorbo;teleweb.no]

[PHP-DB] Number Conversion

2002-10-18 Thread Manoj Japher
hi, I would like to format my output. I would like to represent my integer outputs as 2,000 instead of 2000 which it prints by default. For e.g. I want 200 to be printed as 2,000,000 Do we have any functions which does that? Thanks in advance, Best Regards, Manoj Life,it is not a

Re: [PHP-DB] Manioulating a Flat File

2002-10-18 Thread 1LT John W. Holmes
Here's what I'd like to know: Is there a PHP function for easily finding and removing a line from a flat file of data. And, if not, is there a way to remove a line (or lines) after finding them using fget()? Easy way to do this is with file(). It'll read the entire file into an array, with each

[PHP-DB] Variable won't be passed from HTTP address bar

2002-10-18 Thread Michel Bakkenes - bakkenes.net
Ok.. I'm not a newbie I thought.. I do have experience with PHP, but I never suffered from this error. I used on my own redhat 8.0 server the following test-script: if($action==test){ echo Test;} I tried it to run with: 127.0.0.1/index.php?action=test It doesn't print anything. (which

Re: [PHP-DB] Variable won't be passed from HTTP address bar

2002-10-18 Thread Chase Urich
Check your register_globals setting in your php.ini file. This used to default to 'yes', but now defaults to 'no'. On Fri, 2002-10-18 at 06:26, Michel Bakkenes - bakkenes.net wrote: Ok.. I'm not a newbie I thought.. I do have experience with PHP, but I never suffered from this error. I

Re: [PHP-DB] Variable won't be passed from HTTP address bar

2002-10-18 Thread Pierre-Alain Joye
On Fri, 18 Oct 2002 13:26:20 +0200 Michel Bakkenes - bakkenes.net [EMAIL PROTECTED] wrote: Ok.. I'm not a newbie I thought.. I do have experience with PHP, but I never suffered from this error. I used on my own redhat 8.0 server the following test-script: if($action==test){ echo Test;}

[PHP-DB] Automattic Rollback on User Cancel with MySQL

2002-10-18 Thread Benjamin Schleinzer
Hi I Am using the latest PHP version 4.2.3 with MySQL 3.23.51-max. I use InnoDB tables for transactions and everything works fine with Rollback and Commit. But when the user presses cancel in the browser or the script stops due to an error in the script all open transactions are committed

RE: [PHP-DB] Automattic Rollback on User Cancel with MySQL

2002-10-18 Thread John W. Holmes
I Am using the latest PHP version 4.2.3 with MySQL 3.23.51-max. I use InnoDB tables for transactions and everything works fine with Rollback and Commit. But when the user presses cancel in the browser or the script stops due to an error in the script all open transactions are committed

Re: [PHP-DB] Variable won't be passed from HTTP address bar

2002-10-18 Thread dwalker
Perhaps , $action is not equal to test. Try initializing the $action variable - instead of leaving it uninitialized. ?php $action = test; if($action==test) echo Test; } ? -Original Message- From: Michel Bakkenes - bakkenes.net [EMAIL PROTECTED] To: [EMAIL PROTECTED] [EMAIL

[PHP-DB] MySql Statement inside a function?

2002-10-18 Thread Dave Carrera
Hi All I have created a function and insde that function it dose a standard select, fetch_arry, while loop. I get a error from mysql saying not a vaild resource but if I take the statemnet out of the function all works fine and dandy. Are there things I should be aware of when trying to include

RE: [PHP-DB] MySql Statement inside a function?

2002-10-18 Thread Rob Day
i'm certainly no expert, but here are my thoughts: the variable $tbn2 probabyl has no value inside of your function. so the query is really just select name from. i'd suggest you pass the $tbn2 value to the function. also, it is generally a bad idea to have a echo statements in function. rather

RE: [PHP-DB] MySql Statement inside a function?

2002-10-18 Thread Hutchins, Richard
Dave, I'd agree with Rob especially about returning the results. Plus it's always a good idea to add error checking to your SQL statement. Try replacing your existing line of code with this to make sure you query is actually returning valid results before trying to operate on them. $gnlistres =

[PHP-DB] Log Application Formatting Issue...

2002-10-18 Thread NIPP, SCOTT V (SBCSI)
I am trying to tweak an application that I have developed. The application is our On-Call Log. This application consists of three pages; one page to input new entries, one page to edit existing entries, and finally a log view page. The log view page displays all entries for the past 5

Re: [PHP-DB] Variable won't be passed from HTTP address bar

2002-10-18 Thread Ignatius Reilly
Try instead: if( $_POST['action'] ==test ){ echo Test;} HTH Ignatius - Original Message - From: Michel Bakkenes - bakkenes.net [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Friday, October 18, 2002 1:26 PM Subject: [PHP-DB] Variable won't be

Re: [PHP-DB] Log Application Formatting Issue...

2002-10-18 Thread Jason Wong
On Saturday 19 October 2002 00:09, NIPP, SCOTT V (SBCSI) wrote: I am trying to tweak an application that I have developed. The application is our On-Call Log. This application consists of three pages; one page to input new entries, one page to edit existing entries, and finally a log view

RE: [PHP-DB] Log Application Formatting Issue...

2002-10-18 Thread NIPP, SCOTT V (SBCSI)
Yeah, this is the exact fix I am trying to avoid. Thanks for the feedback, but I prefer to keep the items chronological ascending order. I know there has to be a way to simply default the display to the last page of the dataset. -Original Message- From: Jason Wong

Re: [PHP-DB] Log Application Formatting Issue...

2002-10-18 Thread Paul Burney
on 10/18/02 1:03 PM, NIPP, SCOTT V (SBCSI) at [EMAIL PROTECTED] appended the following bits to my mbox: Yeah, this is the exact fix I am trying to avoid. Thanks for the feedback, but I prefer to keep the items chronological ascending order. I know there has to be a way to simply default the

Re: [PHP-DB] PostgreSQL and HTML output

2002-10-18 Thread Maarten Verheijen
Dear Robertson, Try something like this with a simple table, create it like this in mysql: CREATE TABLE HITS ( IDNR INTEGER AUTO_INCREMENT PRIMARY KEY, REFFER VARCHAR(255), HIT_DATE TIMESTAMP(8) ); And the as a .php file, try something like this:

[PHP-DB] PostgreSQL and HTML output

2002-10-18 Thread Edwin Robertson
With psql you can get all your output in HTML format. Anyone know of a way to do this in PHP? -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP-DB] PostgreSQL and HTML output

2002-10-18 Thread Jason Wong
On Saturday 19 October 2002 01:02, Edwin Robertson wrote: With psql you can get all your output in HTML format. Anyone know of a way to do this in PHP? The usual way is to write some code to do it. If you don't want to write your own code search for some ready-made ones, ADOdb springs to

[PHP-DB] Re: PostgreSQL and HTML output

2002-10-18 Thread Yasuo Ohgaki
Edwin Robertson wrote: (B With psql you can get all your output in HTML format. Anyone know of a way (B to do this in PHP? (B (BIt's psql feature and there is no automatic HTML format (Bin PHP's pgsql module. (B (BIf really would like, you can use passthru() and psql. (B (B?php

[PHP-DB] Re: PostgreSQL and HTML output

2002-10-18 Thread Yasuo Ohgaki
If you need to dump query result for debugging purpose, etc. (BTry something like, (B (B?php (B (B$db = pg_connect(); (B$result = pg_query($db, 'SELECT * FROM some_table'); (B (Becho "pre\n"; (Bvar_dump(pg_fetch_all($result)); (Becho "/pre\n"; (B (B? (B (BYou need PHP 4.3.0-dev or

[PHP-DB] RE: [PHP] Re: Need help with HTTP-Authentication

2002-10-18 Thread Davy Obdam
Hi David,. Http authentication is probly not what you would want to use. Especially if you want to program in timeouts, you would be better off using session based login variables. Cookies are even better with an encrypted pasword that has a windows of time that you have to goto other