[PHP] Weird INCLUDE / mySQL problem

2002-03-16 Thread Dan Tappin
order gets lost. In all cases I have the ORDER BY toc_order which are my 10,20,30,35 values in each row. Can anyone shed some light on this issue? Here is a link for an example: http://test.oilfiielddepot.com/test Please CC me as I am on digest mode. Thanks, Dan Tappin ([EMAIL PROTECTED

[PHP] Sending a header redirect mid-page

2002-03-28 Thread Dan Tappin
my $dbfail code if the connection is successful and my redirect ob_end_clean(); call is not made? Any help would be greatly appreciated. Thanks, Dan P.S. Please CC me/the list as I am on Digest Mode :^) -- Dan Tappin Wavefront Communications Limited P:(403) 241-0062 F:(403) 241-0302 E: [EMAIL

Re: [PHP] Sending a header redirect mid-page

2002-03-28 Thread Dan Tappin
-Original Message- From: Dan Tappin [mailto:[EMAIL PROTECTED]] Sent: Thursday, March 28, 2002 12:36 PM My only concern is that I am adding another mysql_connect and Why do it twice? The connection will still be there later in the script. Yes... I realized that after I hit send

[PHP] Apache Default File Include

2002-04-04 Thread Dan Tappin
I had seen some where the procedure to add a default file to include in all pages served in a virtual domain under Apache. Can anyone point me to a FAQ on this of some keywords that I should search the Apache site for. I want to have a PHP file with all my generic functions loaded on every page

Re: [PHP] Apache Default File Include

2002-04-04 Thread Dan Tappin
as if it was called with the include() function, so include_path is used. The special value none disables auto-prepending. - Original Message - From: Dan Tappin [EMAIL PROTECTED] To: PHP [EMAIL PROTECTED] Sent: Thursday, April 04, 2002 3:05 PM Subject: [PHP] Apache Default File

Re: [PHP] session.use_trans_sid

2002-06-29 Thread Dan Tappin
On Saturday 29 June 2002 18:02, Dan Tappin wrote: I am setting up a login section of my site using sessions. I have the login working with and without cookies enabled. I do not want to restrict my users be requiring cookies. The problem is that I can't seem to get PHP to auto append

[PHP] Sessions [Help]

2002-06-29 Thread Dan Tappin
This is a follow-up to another thread - [PHP] session.use_trans_sid I am setting up a login section of my site using sessions. I have the login working with and without cookies enabled. I do not want to restrict my users be requiring cookies. Here is my /login/login.php file which takes the

[PHP] Conditional Popup Menus with PHP/mySQL and Java?

2002-08-15 Thread Dan Tappin
I am looking for an example of conditional menus using PHP / mySQL to populate the options and values of the menus and java to change these properties with out needing to submit the form to update it. Here is the best, closest example I could find using a static page:

Re: [PHP] Conditional Popup Menus with PHP/mySQL and Java?

2002-08-15 Thread Dan Tappin
... the only thing u really need to know is that you have to send ALL the data to the page with javascript, then effectively, it's a static HTML page. Justin French on 16/08/02 12:19 AM, Dan Tappin ([EMAIL PROTECTED]) wrote: I am looking for an example of conditional menus using PHP

Re: [PHP] Group and count at the same time?

2002-08-15 Thread Dan Tappin
I think you want something like this: SELECT genre, COUNT(*) as count FROM music GROUP BY genre; Dan I am using PHP to maintain a catalog of music and have been just fine with it but have run into one thing i want to do and need some advice. The format of the data is like so:

[PHP] Strange PHP + MySQL add / update issue with NULL values

2002-08-17 Thread Dan Tappin
I have a table where I have specified several columns which I have specified that NULL values are not allowed. I have created a PHP based create / update / delete page where users can update the table. I have an INSERT script that takes the user input and generates the following query

Re: [PHP] RE: Strange PHP + MySQL add / update issue with NULLvalues

2002-08-17 Thread Dan Tappin
NULL This is strange... All of my NOT NULL columns result in '' data instead of NULL but colunms that do not have a NOT NULL constraint do result in NULL! Dan Try this instead: INSERT INTO table SET required_field = -Original Message- From: Dan Tappin [mailto:[EMAIL

Re: [PHP] help with adding

2005-02-25 Thread Dan Tappin
You could try: for ($i = 1; isset( $_POST['qty'.$i] ); $i++) { $qty = $_POST['qty'.$i]; $total .= $qty; echo $qty . 'br /'; } echo $total; Dan T On Feb 24, 2005, at 8:39 AM, Jay Fitzgerald wrote: I have messed with this for a couple of days and cant get it right.

Re: [PHP] textarea posting duplicate text

2005-03-01 Thread Dan Tappin
/test.php I pasted a large part of O'Henry's Gift of the Magi into the textarea, and it gets repeated, as before. Thanks for any help, Elizabeth -Original Message- From: Dan Tappin [mailto:[EMAIL PROTECTED] Sent: Monday, February 28, 2005 6:59 PM To: Elizabeth Lawrence Subject: Re: [PHP] textarea

Re: [PHP] Semi-OT: Anti-password trading/sharing solutions

2005-03-01 Thread Dan Tappin
What about using a simple session database to ensure multiple logins are not allowed. You can create a session, store the session ID in mysql. If the same user tries to login again from a different location i.e. new session ID you can lock them out / log this activity. You really can't

Re: [PHP] Supporting Cancel

2005-03-01 Thread Dan Tappin
That sounds ugly. To be honest the real answer will be unpopular but since the old system is unusable, not maintainable it should be replaced. I think if you estimated the time / cost to rebuild the system from scratch it would still be the better than trying to continue with this PITA

[PHP] Mistaken Identity - Was: Anti-password trading/sharing solutions

2005-03-02 Thread Dan Tappin
Please note that my name is DAN TAPPIN not DAN TRAINOR [EMAIL PROTECTED]. Although our last names start with the same letter you will note that the following characters and our email addresses are different. Please double check your facts before you open your big fat ranting mouths. Dan

Re: [PHP] How can I secure database passwords used by PHP webpages

2005-03-02 Thread Dan Tappin
and compare to you DB. Dan Tappin (The other Dan T) On Mar 1, 2005, at 5:09 PM, Rob Tanner wrote: WE have a number of PHP webpages that access one of several MySql databases and while the PHP files that contain the passwords cannot be accessed via the web, we are becoming increasingly concerned

Re: [PHP] Setting cookie on first visit

2005-03-02 Thread Dan Tappin
The manual detail this issue: http://ca.php.net/setcookie You can't see the cookie until you hit the next page. There is no way view the newly set cookie. Dan Tappin On Mar 2, 2005, at 2:18 AM, Tom Whitbread wrote: I am using a cookie to detect what skin a user wants to display. The problem

[suspicious - maybe spam] [PHP] [suspicious - maybe spam] Re: [PHP] Connecting to a AS/400?

2005-03-02 Thread Dan Tappin
You need to clearer on 'connecting to' . Do you mean FTP, MySQL etc??? Dan Tappin On Mar 2, 2005, at 8:54 AM, Frank Arensmeier wrote: Hello! Is there anyone who has some experience in connecting to a IBM AS/400 server with PHP? Any ideas where to start? Regards, Frank

Re: [PHP] a new it company

2005-03-09 Thread Dan Tappin
should teach them their lesson about mailing list etiquette. If it continues they will simply be banned from the list. With free speech you have to live with the odd incident like this. Dan Tappin (Dan T) On Mar 9, 2005, at 11:29 AM, Jochem Maas wrote: Rory Browne wrote: SPAMMER From your email

[PHP] long mysql_connect times

2005-03-14 Thread Dan Tappin
I have a PHP5.x site under development with MySQL 4.1.x. I had the site running fine and there were no speed issues at all. Everything is on the same system (a dual G5 Xserve). Today however the PHP pages with MySQL calls started to take forever to load. Static html and php files still

Re: [PHP] long mysql_connect times

2005-03-14 Thread Dan Tappin
Just an update... on a hunch I changed my mysql_connect to mysql_pconnect. As expected the first one still takes 5 to 10 seconds and after that subsequent pages load instantly as expected. Dan T On Mar 14, 2005, at 3:07 PM, Dan Tappin wrote: I have a PHP5.x site under development with MySQL

Re: [PHP] parse error, unexpected T_ENCAPSED_AND_WHITESPACE

2005-03-14 Thread Dan Tappin
Why not make it simple?: // end PHP code ? tdinput type='checkbox' name='status[? echo $row['profileID']; ?]' value='true'/td ? // continue PHP code Dan T On Mar 14, 2005, at 3:58 PM, Jeff Schmidt wrote: Hello, I'm beating my head, and can't figure out *WHY* PHP is giving me this error. The

Re: [PHP] Auto logout

2005-03-15 Thread Dan Tappin
I do not think there is really any way around the dual login from the same browser issue. As for the auto-logout I have a suggestion. I have the same set-up for one of my sites. I have a session MySQL database and I track the id of a user once they login and then that record is updated with

[PHP] Enable CLI on Mac OS X

2003-02-13 Thread Dan Tappin
Hello all, I am running a few Apache 1.3.x / PHP 4.2.3 systems and I would like to mess around with using PHP from the command line. I installed PHP from a nice .pkg installer from Tenon (www.tenon.com) and it runs fine. The problem is that there is no source code on my system to run a

[PHP] Mac OS X EI TEXTAREA Problem

2002-10-26 Thread Dan Tappin
I am setting a MySQL update page where a user is provided a HTML form to update with data auto poulated from a MySQL database via PHP. All the form element work except for TEXTAREA. No matter what encoding I use (htmlspecial, htmlentities etc) I get the browser displaying garbeld text. Example:

[PHP] Form element names starting with the + character????

2002-10-27 Thread Dan Tappin
I have a simple method of creating easy form processing I thought I came up with the idea (I am not claiming to be the first) to have form elements I want to update via MySQL starting with either - or +. Example: +name=DAN [EMAIL PROTECTED] -notes= id=1 The first 2 are required and

Re: [PHP] Form element names starting with the + character????

2002-10-27 Thread Dan Tappin
recall correctly it either strips them entirely or turns them into underscores. -Samuel | http://enetwizard.net -Original Message- From: Dan Tappin [mailto:dan;wavefront.ca] Sent: Sunday, October 27, 2002 2:20 AM To: [EMAIL PROTECTED] Subject: [PHP] Form element names starting

Re: [PHP] Form element names starting with the + character????

2002-10-27 Thread Dan Tappin
could be wrong.) Just wondering... - E Dan Tappin [EMAIL PROTECTED] wrote: I have a simple method of creating easy form processing I thought I came up with the idea (I am not claiming to be the first) to have form elements I want to update via MySQL starting with either - or +. Example