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
= 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
This is a test.
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
: 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
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
--
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.
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
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
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
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
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
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
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
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
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,
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
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
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
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
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
;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
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
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
-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
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
.
---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
: 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]"
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
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
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.
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
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
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
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
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,
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
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
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
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
-
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
);
?
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
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
42 matches
Mail list logo