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: [PH
>> 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);
>>
>> m
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")
{
http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
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-
Fr
Or just do a return();
mailto:[EMAIL PROTECTED]]
Sent: 21 August 2002 15:48
To: Henry; php-general
Subject: RE: [PHP] Exiting from an include or required file
Seems like the easy way, at least in this case, would be to make the second
part of your File A an "else" to your "if".
-Origina
6 matches
Mail list logo