[PHP] RE: mysql_num_rows

2002-12-17 Thread Roger Lewis
I found the problem! It was a space before $ in ' $name' in line two of the query. Sorry for the trouble. Roger -Original Message- From: Roger Lewis [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 4:00 PM To: Php-General Subject: mysql_num_rows Would someone be kind enough

[PHP] mysql_num_rows

2002-12-17 Thread Roger Lewis
= mysql_query($sql) or die (Cannot verify the member); $rows = mysql_num_rows($result); echo rows = $rowsbr; Conclusion: mysql_num_rows seems to be returning one less row than exists. Is this correct? Thanks in advance Roger Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe

[PHP] test

2002-12-17 Thread Roger Lewis
This is a test. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] test

2002-12-17 Thread Roger Lewis
: Martin Towell [mailto:[EMAIL PROTECTED]] Sent: Tuesday, December 17, 2002 10:02 PM To: Php-General Subject: RE: [PHP] test na! didn't work :) g -Original Message- From: Roger Lewis [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 18, 2002 4:59 PM To: Php-General Subject: [PHP] test

RE: [PHP] test

2002-12-17 Thread Roger Lewis
John, I'm emailing. And it looks like each time I send something, I get the same message in return. Roger John Taylor wrote: Roger, Are you emailing or posting to the news group? John -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php --

RE: [PHP] test

2002-12-17 Thread Roger Lewis
So what the h... is going on? Roger Lookee there, I'm getting it now and I'm sending to the newsgroup. Subject: NDN: [PHP] Re: mysql_num_rows Date: Wed, 18 Dec 2002 14:18:28 +0800 From: Mailer-Daemon [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sorry.

RE: [PHP] test

2002-12-17 Thread Roger Lewis
Martin, I'm sending too [EMAIL PROTECTED] also. Never seen anything like this before Roger Martin Towell wrote: actually, I get the same error. I've been putting it down to someone subscribing and now their email is invalid. BTW: I'm emailing to [EMAIL PROTECTED] - if that helps -- PHP

RE: [PHP] Max File Size

2002-12-05 Thread Roger Lewis
Hi, Thursday, December 5, 2002, 5:11:16 PM, you wrote: RL Jason Wong responded Wednesday, December 04, 2002 10:24 PM RL On Thursday 05 December 2002 10:14, Roger Lewis wrote: RL Thanks for the suggestion. I'll try ini_set although I'm not yet RL certain RL of how to use it. RL As has

[PHP] PHP Configuration - Can't Change Post_Max_Size

2002-12-05 Thread Roger Lewis
This is further to my post yesterday on Max File Size. I was able to set upload_max_filesize to 790 and I can therefore upload files up to that size. I would now like to increase that limit, but I am limited by post_max_size which defaults to 8M. I can't seem to change the value of

RE: [PHP] Need Redirection Trick...

2002-12-05 Thread Roger Lewis
Nilaab, This sounds similar to what I was trying to do recently, i.e creating dependent dropdown boxes. Here's a link to a demo of the code that might be of interest to you. http://www.onlinetools.org/tools/easyselectdata/index.html Cheers. Roger -Original Message- From: @ Nilaab

[PHP] Max File Size

2002-12-04 Thread Roger Lewis
this was enough to be able to upload files greater than the default 2mb. Even though php.ini has been changed, when I check phpinfo.php, I see that upload_max_filesize is still 2mb and my file is not being uploaded. Can anyone tell me what I am missing here. Thanks, Roger Lewis -- PHP General

RE: [PHP] Max File Size

2002-12-04 Thread Roger Lewis
Yep, Mine is in /etc/httpd/php.ini and that's what phpinfo gives me Roger -Original Message- From: Marco Tabini [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 3:19 PM To: Roger Lewis Cc: PHP-General Subject: Re: [PHP] Max File Size Are you sure you're looking

RE: [PHP] Max File Size

2002-12-04 Thread Roger Lewis
here. Thanks, Roger Lewis Further to my original post, to check if my php.ini was being recognized I temporarily changed some other configuration options, i.e. register_globals and include_path, and reloaded phpinfo.php. All options, except for upload_max_filesize, were changed per my input

RE: [PHP] Max File Size

2002-12-04 Thread Roger Lewis
to this setting. Roger -Original Message- From: David Banks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 5:22 PM To: 'Roger Lewis' Subject: RE: [PHP] Max File Size Don't forget to increase post_max_size as well See also http://www.php.net/manual/en/features.file-upload.php

RE: Re[2]: [PHP] Max File Size

2002-12-04 Thread Roger Lewis
Hi, Thursday, December 5, 2002, 11:00:14 AM, you wrote: RL On Wednesday, December 04, 2002 3:03 PM, I wrote RL Hi, RL Further to my original post, to check if my php.ini was being recognized I RL temporarily changed some other configuration options, i.e. register_globals RL and include_path,

RE: [PHP] Max File Size

2002-12-04 Thread Roger Lewis
Message- From: David Banks [mailto:[EMAIL PROTECTED]] Sent: Wednesday, December 04, 2002 5:57 PM To: 'Roger Lewis' Subject: RE: [PHP] Max File Size post_max_size *should* be in php.ini, I think I ususally leave these things up to our sysop ;) Checking back to when I was coding for file

RE: [PHP] Max File Size

2002-12-04 Thread Roger Lewis
Tom Rogers responded on Wednesday, December 04, 2002 6:11 PM Hi, Thursday, December 5, 2002, 11:54:08 AM, you wrote: RL Tom, RL Thanks for your response. If this is so, can you tell me how I check it out RL and fix things. RL Roger TR Unless you have set it yourself that is probably not

RE: [PHP] Max File Size

2002-12-04 Thread Roger Lewis
Jason Wong responded Wednesday, December 04, 2002 10:24 PM On Thursday 05 December 2002 10:14, Roger Lewis wrote: Thanks for the suggestion. I'll try ini_set although I'm not yet certain of how to use it. As has already been pointed out, the uploads take place *before* your script is run

RE: Re[2]: [PHP] Max File Size

2002-12-04 Thread Roger Lewis
Hi, Thursday, December 5, 2002, 5:11:16 PM, you wrote: RL Jason Wong responded Wednesday, December 04, 2002 10:24 PM RL On Thursday 05 December 2002 10:14, Roger Lewis wrote: RL Thanks for the suggestion. I'll try ini_set although I'm not yet RL certain RL of how to use it. RL As has

RE: [PHP] publishing php mysql website on cd-rom

2002-11-07 Thread Roger Lewis
anyone done this? Can it be done other than by separately displaying and saving each page as an html page, and then manually creating the links? Roger Lewis On Wednesday, November 06, 2002 1:51 AM, BigDog replied To: ROBERT MCPEAK BD That is going to be very hard to do...you might want to look

RE: [PHP] publishing php mysql website on cd-rom

2002-11-07 Thread Roger Lewis
;venticon.com] Sent: Thursday, November 07, 2002 5:15 AM To: Roger Lewis Cc: [EMAIL PROTECTED] Subject: RE: [PHP] publishing php mysql website on cd-rom This is where xml and xsl come in handy...you could have all the pages outputed to xml format and then use xslt to transform to html. Then you could do

RE: [PHP] Problem with is_dir function

2002-11-05 Thread Roger Lewis
exist; return;} Thanks a lot. Roger Lewis This is a follow-up to my original posting. * I did not get an answer as to why is_dir does not return a false value; however, file_exists does the job nicely. Thanks for all the suggestions. * Roger -- PHP General Mailing List (http://www.php.net

[PHP] Problem with is_dir function

2002-11-02 Thread Roger Lewis
please explain what I am doing wrong here, and how to return a usable value if the directory doesn't exist. $test = is_dir($user_dir); if($test){echo You have a user directory. It is $user_dir;} else{echo Your user directory doesn't exist; return;} Thanks a lot. Roger Lewis -- PHP General

RE: [PHP] Problem with is_dir function

2002-11-02 Thread Roger Lewis
-Original Message- From: Andrew Brampton [mailto:andrew;bramp.freeserve.co.uk] Sent: Saturday, November 02, 2002 11:24 AM To: Roger Lewis; [EMAIL PROTECTED] Subject: Re: [PHP] Problem with is_dir function what values of $user_dir are you passing to is_dir? echo them out before the test, you

[PHP] Confirm a Deletion

2002-10-01 Thread Roger Lewis
I know this should be very simple, but I just don't get it. I want to delete a record from a mysql table, but prior to deleting the record I want to receive an option to confirm the deletion. On page one (kb_areas_add.php) I have a form for inputting the field (area_todelete) for the record I

RE: [PHP] Confirm a Deletion

2002-10-01 Thread Roger Lewis
. ---John Holmes... Thanks guys. The intermediate page scheme worked. I added the hidden field like so because I couldn't get htmlentities to work: input type=hidden name=area_todelete value=?=$area_todelete? I appreciate the help. Roger -Original Message- From: Roger Lewis [mailto

RE: [PHP] Re: Dependent Dropdown Boxes

2002-09-11 Thread Roger Lewis
: Wednesday, September 11, 2002 2:02 AM To: [EMAIL PROTECTED] Subject: [PHP] Re: Dependent Dropdown Boxes Hi, Try to learn many things from the test code i created below: http://lgwm.org/ozone/dynatable.htm Good luck, Elias Roger Lewis [EMAIL PROTECTED] wrote in message [EMAIL PROTECTED]"

[PHP] Dependent Dropdown Boxes

2002-09-10 Thread Roger Lewis
the javascript format above. Thanks in advance for any help or suggestions. Roger Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Any netscape users out there?

2002-09-03 Thread Roger Lewis
Ctrl r worked for me -Original Message- From: Peter Janett [mailto:[EMAIL PROTECTED]] Sent: Tuesday, September 03, 2002 10:00 AM To: Robert Cummings; [EMAIL PROTECTED] Cc: Dan Ostrowski; [PHP GENERAL] Subject: Re: [PHP] Any netscape users out there? Simply hold down the control key and

RE: [PHP] Re: set filename of file open/download

2002-08-26 Thread Roger Lewis
Richard Lynch wrote On Saturday, August 24, 2002 4:52 PM To: David Buerer I'm using a php script to stream a microsoft word file to a browser. I'm sending header(Content-type: {$mimetype[DOC]} \n); to set the mime type to application/msword so that the browser knows how to open the file.

RE: [PHP] Re: Trouble Downloading Files

2002-08-26 Thread Roger Lewis
Richard Lynch responded Monday, August 26, 2002 3:28 PM to Roger Lewis I'm not certain this is the right place to ask, but here goes. For security reasons I have placed certain document files in a directory outside my web root. There are many types of files included (e.g. jpg, gif, txt, pdf

RE: [PHP] How Do You Protect Individual Files

2002-08-21 Thread Roger Lewis
On Wednesday 21 August 2002 10:54, Roger Lewis wrote: I did, but like I said, I couldn't find much. Maybe I wasn't using the correct key words. There is a lot about protecting php and html files but not much on other, non-php files in external directories. There is some discussion about

[PHP] Multiple File Uploads With a Single Input

2002-08-21 Thread Roger Lewis
multiple files, and upload them to a directory all at one time. Can it be done? Roger Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Web Site

2002-08-21 Thread Roger Lewis
On Wednesday, August 21, 2002 6:41 PM Peter Goggin wrote 2. I need to set up credit card payments. Has anyone any experience with PayPal? Are there any other providers I should consider. Nothing but good to say about PayPal Roger -- PHP General Mailing List

RE: [PHP] How Do You Protect Individual Files

2002-08-21 Thread Roger Lewis
Justin, Thanks again. I've been doing some more research on .htaccess. The problem I see is that it is high maintenance, i.e. I've already got a MySQL table of users with username and password. To use .htaccess, you have to have a htpasswd file containing duplicate usernames and passwords,

[PHP] How Do You Protect Individual Files

2002-08-20 Thread Roger Lewis
the page that the link is on. However, if he somehow knows the full path to the file, he can get to it directly, bypassing the link and overriding the authentication system. Thanks for any help on this question. Roger Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit

RE: [PHP] How Do You Protect Individual Files

2002-08-20 Thread Roger Lewis
On Wednesday 21 August 2002 08:59, Roger Lewis wrote: I haven't been able to find much on this subject in the archives. Using sessions I have been able to have the server validate the user's access level before serving him a page. I put include files on each page that I want

RE: [PHP] How Can I Generate an Email List from a MySQL Table

2002-08-18 Thread Roger Lewis
On Sat, 17 Aug 2002 20:10:02 -0700 Roger Lewis [EMAIL PROTECTED] wrote: My problem is how do you create the variable, $to, from the MySQL table so that it contains all of the addresses separated by commas. Daren Cotter [mailto:[EMAIL PROTECTED]] responded Saturday, August 17, 2002 8:42 PM

[PHP] How Can I Generate an Email List from a MySQL Table

2002-08-17 Thread Roger Lewis
this out and it works fine when, for instance, $to = [EMAIL PROTECTED], [EMAIL PROTECTED] or some such collection of addresses. My problem is how do you create the variable, $to, from the MySQL table so that it contains all of the addresses separated by commas. Thanks for your help, Roger Lewis

RE: [PHP] How Can I Generate an Email List from a MySQL Table

2002-08-17 Thread Roger Lewis
- From: Chris Knipe [mailto:[EMAIL PROTECTED]] Sent: Saturday, August 17, 2002 8:37 PM To: Roger Lewis; Php-General Subject: Re: [PHP] How Can I Generate an Email List from a MySQL Table $to = ''; while ($blah = mysql_fetch_row($ref)) { $to =+ $blah['address']; }; Be careful however. Most SMTP

[PHP] How do you make a directory

2002-07-23 Thread Roger Lewis
); ? Can anyone see what I am doing wrong? Thanks. Roger Lewis -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] How do you make a directory

2002-07-23 Thread Roger Lewis
On Wednesday 24 July 2002 11:12, Roger Lewis wrote: I'm trying to learn to create a directory in php, and from everything I've read I created this simple test that I put into the file add_user_dir.php. Unfortunately I can't get it to work. I am getting the error message: Warning: MkDir