php-windows Digest 17 Sep 2004 12:44:30 -0000 Issue 2399
Topics (messages 24585 through 24588):
How can I organise my data from a total amount into tens?
24585 by: Daniel Anderson
Re: Call to undefined function mysql_connect()
24586 by: Melanie Ployhar
Sending mail through localhost
24587 by: W Roothman
Re: [PHP-DB] Sending mail through localhost
24588 by: John Holmes
Administrivia:
To subscribe to the digest, e-mail:
[EMAIL PROTECTED]
To unsubscribe from the digest, e-mail:
[EMAIL PROTECTED]
To post to the list, e-mail:
[EMAIL PROTECTED]
----------------------------------------------------------------------
--- Begin Message ---
How can I organise my data from a total amount into tens?
So, say I have a total amount of something like: 50
I want to organise this so it organises each into 10's
like this:
PAGE 1 (01 - 10) | PAGE 2 (11 - 20) | PAGE 3 (21 - 30) | PAGE 4 (31 - 40) | PAGE 5
(41-50) ...
I basically want to use this function for a guestbook I made,
I want to organise each post into 10s, so you can click a link and it will select the
posts from that group.
I can get it to select from the group, but what I really want is how to get it do, is
how to do the link part:
"PAGE 1 (01 - 10) | PAGE 2 (11 - 20) | PAGE 3 (21 - 30) | PAGE 4 (31 - 40) | PAGE 5
(41-50) ..."
So it groups them into 10s so they count up to the total amount...
If you need me to explain it more please do say :)
Thanks,
Dan
--- End Message ---
--- Begin Message ---
I did both of these suggestions and it still doesn't work. I also It works
fine in php4 but not php5.
- I had a similar problem with PHP5 and IIS. I had to copy the php_mysql.dll
to my c:\winnt folder (and/or c:\php\ -- it didn't like the ext folder). I
assume you have enabled it in your php.ini?
- try to put a copy of "libmysql.dll" in windows/system32 folder...
Thanks for your help. I think I'll just stick with php4. -
[EMAIL PROTECTED]
From: "Nadim Attari" <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] Re: Call to undefined function mysql_connect()
Date: Thu, 16 Sep 2004 10:00:28 +0400
> Do you have a suggestion what I need to do? Thank you for your time!
--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
--- End Message ---
--- Begin Message ---
Dear All,
Do I need to install a mail server, such as ArGoSoft Mail Server, on my computer (MS
XP) in order to prevent this error when sending mail through a form (ref: N: Mail
functions, PHP manual):
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1 Unable to relay for
[EMAIL PROTECTED] in c:\inetpub\wwwroot\......sendfeeback.php on line 22
php.ini is set to:
[mail function]
; For Win32 only.
SMTP = localhost ; for Win32 only
; For Win32 only.
sendmail_from = [EMAIL PROTECTED] ; for Win32 only
Thanks & regards,
Will
--- End Message ---
--- Begin Message ---
From: "W Roothman" <[EMAIL PROTECTED]>
Do I need to install a mail server, such as ArGoSoft Mail Server,
on my computer (MS XP) in order to prevent this error when sending
mail through a form (ref: N: Mail functions, PHP manual):
Warning: mail() [function.mail]: SMTP server response: 550 5.7.1
Unable to relay for [EMAIL PROTECTED] in c:\inetpub\wwwroot\......
sendfeeback.php on line 22
php.ini is set to:
[mail function]
; For Win32 only.
SMTP = localhost ; for Win32 only
;For Win32 only.
sendmail_from = [EMAIL PROTECTED] ; for Win32 only
Your setting says you already have an SMTP server (mail server) installed on
"localhost", which is the same computer PHP is running on. The error message
implies that the server is working, but it's not set up correctly to send
mail.
First of all, change the "sendmail_from" setting to your email address.
Then, you need to set up your SMTP server to allow relaying from itself
only. How you do this depends on your SMTP server. Then things should work
correctly.
Alternatively, you can set the "SMTP" setting in php.ini to your mail server
provided by your ISP, i.e. "mail.charter.net", set the "sendmail_from" to a
"charter.net" (for example) email address, then restart your web server and
things should work.
I'm no SMTP expert, so I can't tell you if any of this is the "best" way to
do it or not, though...
---John Holmes...
--- End Message ---