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)
{
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);
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:
?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
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-
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:
6 matches
Mail list logo