RE: [PHP] Confused

2002-09-23 Thread M . A . Bond
Nope, Do a select like so: Select user_name, group_name from users,groups where users.group_id=groups_id order by group_name; Then do a php loop (you'll need to find the eact php commands, this is just an example): While (!$results-EOF) { If ($results[group_name]!=$old_groupname) {

RE: [PHP] mysql_num_rows error

2002-09-23 Thread M . A . Bond
I am new to php and that the folowing error: Warning: mysql_num_rows(): supplied argument is not a valid MySQL result resource in /home/tbonestu/public_html/smallimages.php i dont know what i am doing wrong here is the code: $db = mysql_pconnect(connect info);

RE: [PHP] How do i assign Integers only and not real numbers?

2002-09-23 Thread M . A . Bond
You could cast it to an int, although the manual warns that you can get spurious errors upon casting an unknown fraction, so be careful. $year= (int) ($years); Mark -Original Message- From: Tom [mailto:[EMAIL PROTECTED]] Sent: 23 September 2002 15:47 To: [EMAIL PROTECTED] Subject:

RE: [PHP] MS SQL Problem

2002-09-13 Thread M . A . Bond
?PHP $hostname = LocalServer; ^^ This should be LocalHost (unless you are trying to connect to a server with a DNS alias of LocalServer). Mark -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

RE: [PHP] Re: Mail problem

2002-08-30 Thread M . A . Bond
I actually had to set the SMTP setting to localhost on our solaris boxes to get this to work. I discovered this because we have a few older machines without php.ini files altogether, and the default is to have this set (the older machines worked). Thanks Mark Bond -Original Message-

RE: [PHP] Exiting from an include or required file

2002-08-21 Thread M . A . Bond
Or just do a return(); ?php if (empty($_POST['search_criteria'])) { echo You must provide search criteria; return; } -Original Message- From: Roedel, Mark [mailto:[EMAIL PROTECTED]] Sent: 21 August 2002 15:48 To: Henry; php-general Subject: