RE: [PHP] How do you do this?
PHPBuilder.com has an article on this: http://www.phpbuilder.com/columns/rod2221.php3 --david > -Original Message- > From: Sefton [mailto:[EMAIL PROTECTED]] > Sent: Thursday, 25 January 2001 4:41 PM > To: [EMAIL PROTECTED] > Subject: [PHP] How do you do this? > > > Hello, > > I am still new to PHP but so far, I am getting things sorted > reasonably ok > with some great from this group and other sites. > > I have a MySql Database, that is working great, but when my > results are > returned there is alot of information. > > How do you display say only 15 results when doing a query > from MySql, and > display a next button for the next lot of 15. > > I can get it to return all, but not in numbers. I don't even > know where to > start. > > Any ideas would be bloody marvellous. Thanks dudes & dudess's. > > Chris > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] comparing numbers
Do you mean something like: --dave -Original Message- From: Clayton Dukes [mailto:[EMAIL PROTECTED]] Sent: Sunday, February 25, 2001 12:54 PM To: [EMAIL PROTECTED] Subject: [PHP] comparing numbers How can I do something like the following shell script, in PHP? (I know this won't work normally, but you get the idea). if [ $id <= 59 ]; then $id=81 TIA! Clayton Dukes -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] when using die(), how can i get the line number that errored?
print __LINE__ Will print the line number (as per http://www.php.net/manual/en/language.constants.php). --dave > -Original Message- > From: Noah Spitzer-Williams [mailto:[EMAIL PROTECTED]] > Sent: Monday, 29 January 2001 7:21 AM > To: [EMAIL PROTECTED] > Subject: [PHP] when using die(), how can i get the line number that > errored? > > > here's my code: > > $res = mysql_query($badsqlstatement) or die(errtrapper()); > > inside errtrapper(), is there a way to find out what line this error > occurred? > > thanks!! > > - Noah > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Can php listen to server ports
http://www.php.net/manual/en/ref.sockets.php has a cut'n'paste sample that works perfectly. --dave > -Original Message- > From: Scott Mebberson [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, 30 January 2001 3:37 PM > To: [EMAIL PROTECTED] > Subject: [PHP] Can php listen to server ports > > > Hi Guys, > > Can php listen to server ports to capture any data that is > coming in? I am > running linux and PHP so if there is anyother way to get the > information > into PHP. > > Anything you can offer will be a great help. > > Thanks > > Scott. > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] OT probably- Resource id# shows up in select box.
Probably printing the result of a DB call somewhere accidentally. ie: $dbh = mysql_connect($host,$user,$pass)); echo $dbh; would do that. --dave > -Original Message- > From: Chuck Barnett [mailto:[EMAIL PROTECTED]] > Sent: Wednesday, 31 January 2001 12:34 PM > To: PHP General List > Subject: [PHP] OT probably- Resource id# shows up in select box. > > > Pardon for the OT but what would cause "Resource id #"x to > show up in my > select box from a select box populated from a database? > > Thanks, > Chuck > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] SMTP on IIS 5.0 Windows 2000 Pro
Have you set SMTP= your.smtp.server.com ;for win32 only in you php.ini file? --dave > -Original Message- > From: Peter Knif [mailto:[EMAIL PROTECTED]] > Sent: Monday, 19 February 2001 8:13 AM > To: [EMAIL PROTECTED] > Subject: [PHP] SMTP on IIS 5.0 Windows 2000 Pro > > > Hi everyone, > > I'm trying to run a simple PHP e-mail script on my Windows > 2000 Pro machine > and I keep receiving Server Error. I tried the same script on > a Unix server > and it worked fine. Does anyone know what the problem might > be? Thanks in > advance. > > > -- > * Peter Knif * > > [EMAIL PROTECTED] > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] SMTP on IIS 5.0 Windows 2000 Pro
What mail server software is it that you're running on the server? --dave > -Original Message- > From: Peter Knif [mailto:[EMAIL PROTECTED]] > Sent: Monday, 19 February 2001 9:39 AM > To: [EMAIL PROTECTED] > Subject: Re: [PHP] SMTP on IIS 5.0 Windows 2000 Pro > > > I have SMTP = localhost > > It worked when I set SMTP = my ISP smtp server, but I want to > make it work > with the SMTP server on my system. Thanks. > > -- > * Peter Knif * > > [EMAIL PROTECTED] > "David Harrison" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > Have you set > > > > SMTP = your.smtp.server.com ;for win32 only > > > > in you php.ini file? > > > > --dave > > > > > -Original Message- > > > From: Peter Knif [mailto:[EMAIL PROTECTED]] > > > Sent: Monday, 19 February 2001 8:13 AM > > > To: [EMAIL PROTECTED] > > > Subject: [PHP] SMTP on IIS 5.0 Windows 2000 Pro > > > > > > > > > Hi everyone, > > > > > > I'm trying to run a simple PHP e-mail script on my Windows > > > 2000 Pro machine > > > and I keep receiving Server Error. I tried the same script on > > > a Unix server > > > and it worked fine. Does anyone know what the problem might > > > be? Thanks in > > > advance. > > > > > > > > > -- > > > * Peter Knif * > > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > -- > > > PHP General Mailing List (http://www.php.net/) > > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > > For additional commands, e-mail: [EMAIL PROTECTED] > > > To contact the list administrators, e-mail: > > > [EMAIL PROTECTED] > > > > > > > -- > > PHP General Mailing List (http://www.php.net/) > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > > > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: > [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]