RE: [PHP] template solutions?

2001-05-01 Thread Henning Kilset Pedersen

Nope, it doesn't support nested loops (or dynamic blocks, as it's called
now). But PHPLib templates supports this. PHPlib covers a lot of other stuff
as well, but I haven't bothered to take a look at that yet, as Fasttemplate
is good enough for my use ;-)

http://phplib.netuse.de is their URL.

Regards,
--
Henning Kilset Pedersen
Anarchy Online Server Operations
Oracle, PHP, e-Commerce etc.
Funcom Oslo AS

phone + 47 22 92 58 40
cell  + 47 91 66 40 30
email [EMAIL PROTECTED]

-Original Message-
From: Steven Haryanto [mailto:[EMAIL PROTECTED]]
Sent: 1. mai 2001 17:50
To: Henning Kilset Pedersen; 'Fabian Raygosa'; [EMAIL PROTECTED]
Subject: RE: [PHP] template solutions?


Cool. I didn't know that.

Does FastTemplate support nested loop and ifs?

Steve

At 5/1/2001 10:33 PM, Henning Kilset Pedersen wrote:
Fasttemplate supports loops and if's.

You set a dynamic block like so:

!-- BEGIN DYNAMIC BLOCK : rowset --
TR
  {ROWCONTENT}
/TR
!-- END DYNAMIC BLOCK : rowset --

And then in the PHP code that parses this html template (.tpl, for example)
file, you do a $tpl-assign (.ROWCONTENT, rowdata);

and loop over that. the .ROWCONTENT means that you're ADDING data to a
variable that already exists. Replace rowdata with the data for the row
in
question.

Isn't this what you want??



-- 
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] template solutions?

2001-05-01 Thread Henning Kilset Pedersen

Fasttemplate supports loops and if's.

You set a dynamic block like so:

!-- BEGIN DYNAMIC BLOCK : rowset --
TR
 {ROWCONTENT}
/TR
!-- END DYNAMIC BLOCK : rowset --

And then in the PHP code that parses this html template (.tpl, for example)
file, you do a $tpl-assign (.ROWCONTENT, rowdata);

and loop over that. the .ROWCONTENT means that you're ADDING data to a
variable that already exists. Replace rowdata with the data for the row in
question.

Isn't this what you want??

Regards,
--
Henning Kilset Pedersen
Anarchy Online Server Operations
Oracle, PHP, e-Commerce etc.
Funcom Oslo AS

-Original Message-
From: Steven Haryanto [mailto:[EMAIL PROTECTED]]
Sent: 30. april 2001 21:09
To: Fabian Raygosa; [EMAIL PROTECTED]
Subject: Re: [PHP] template solutions?


At 5/1/2001 01:43 AM, Fabian Raygosa wrote:
Maybe this is what you are looking for
http://www.thewebmasters.net/php/FastTemplate.phtml

Nope. I was looking for a template that supports loops and
IFs. Someone pointed me to php dreamtime:

  http://www.phptemplates.org/

which is a cool project, by the way.

Btw, I think I might need some extra tags to my template
language so I'm going to hack this on by myself at the
time being.

Thanks,
Steve


--
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] HELP !!!!

2001-05-01 Thread Henning Kilset Pedersen

http://www.scibit.com

Mascon - it's great for MySQL, but doesn't support any other databases. If
you want for other DB's as well, use something like Embarcadero ER/Studio at
http://www.embarcadero.com - that's horrendously expensive, though.


--
Henning Kilset Pedersen
Anarchy Online Server Operations
Oracle, PHP, e-Commerce etc.
Funcom Oslo AS

-Original Message-
From: Hassan Arteaga [mailto:[EMAIL PROTECTED]]
Sent: 1. mai 2001 19:59
To: Php (E-mail)
Subject: [PHP] HELP 


Hi all !!!

I need URL to download some visual tool to create Databases, tables,
etc..for mySQL

Thanks 

--
M. Sc. Hassan Arteaga Rodríguez
Microsoft Certified System Engineer
Network Admin, WEB Programmer
FUNDYCS, Ltd
[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] PHP Graph class/library anywhere?

2001-05-01 Thread Henning Kilset Pedersen

http://www.zend.com  -- Resources -- Code Gallery -- Look Around ;-)

There's tons of them in there.



--
Henning Kilset Pedersen
Anarchy Online Server Operations
Oracle, PHP, e-Commerce etc.
Funcom Oslo AS
-Original Message-
From: indrek siitan [mailto:[EMAIL PROTECTED]]
Sent: 1. mai 2001 20:08
To: [EMAIL PROTECTED]
Subject: [PHP] PHP Graph class/library anywhere?


Hi,

is there a PHP class/library available anywhere, that supports
dynamic creation of different graphs? I need 2D bar graph and
pie graph support.

i found the VH Graph (http://www.vhconsultants.com/graph/graph.htm),
but they want $100 for their 2.x version. i'd prefer a free one
(i'm sure there must be a couple floating around) :)


Rgds,
  Tfr

  --== [EMAIL PROTECTED] == http://tfr.cafe.ee/ == +372-50-17621 ==-- 

-- 
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] How to execute a php scripts

2001-04-27 Thread Henning Kilset Pedersen

Bertrand,

if you're serious about trying to get help for something, it would be very
helpful if you ask a more specific question, with code samples of what
you've done so far.

There are excellent tutorials on this subject, at http://www.phpbuilder.com,
http://www.phpbeginner.com, http://www.zend.com, http://www.devshed.com etc.
etc. Start with the devshed one, click on the PHP area, and find your way
through PHP101. It takes a few hours to get into it, but it will be worth
your time, believe me.

You also have to tell us if you have phpapache (or another webserver) on
the MySQL computer, or if you're running PHP and the webserver on Windows
and MySQL on a different (Linux, as you said) computer. These things are
important for things such as user access rights in MySQL (the default mysql
account doesn't have privileges to access the database from a remote host,
only @localhost).


Regards,
Henning Pedersen
Funcom Oslo



-Original Message-
From: Bertrand TACHAGO [mailto:[EMAIL PROTECTED]]
Sent: 27. april 2001 18:45
To: [EMAIL PROTECTED]
Subject: [PHP] How to execute a php scripts


Hi,

I want to know how to execute a php scripts which update a MySQL
database.

I am working on Win 98 and MySQL is install on Linux on another
computer.

Thank You in Advance.


--
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] Payflow, story continued

2001-04-26 Thread Henning Kilset Pedersen

Yup, I'm reading the other posts.

But the fact of the matter is, I don't have time to wait for a new
extension. I need to develop a solution *NOW*.

Thus, I will continue full-steam ahead with what I'm doing. I'll gladly
switch to the new extension once/if it becomes available.

Regards,
Henning
Funcom Oslo AS


-Original Message-
From: Robert Covell [mailto:[EMAIL PROTECTED]]
Sent: 25. april 2001 22:55
To: Dan Harrington; Henning Kilset Pedersen; [EMAIL PROTECTED]
Subject: RE: [PHP] Payflow, story continued


Is anybody reading the other posts about the work in progress being done by
John?  This extra work seems pointless if it is being looked into by the PHP
development team.

Sincerely,

Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: [EMAIL PROTECTED]
Phone: 816.210.7145
Fax: 816.753.1952

-Original Message-
From: Dan Harrington [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 3:52 PM
To: Henning Kilset Pedersen; [EMAIL PROTECTED]
Subject: RE: [PHP] Payflow, story continued



Congratulations,

So you've overcome the PNVersion demons, now to others.
What you need to do now is to locate the f73e89fd.0 file found in the PFPro
library and make sure it is present in your OpenSSL or other SSL certs
directory.
It should be in the same directory as your server cert(s).  That is what
is generating the response code -31.

That file is (in the SDK 3.0) found in

verisign/payflowpro/linux/certs/f73e89fd.0

You need that to be in your SSL Certs directory in order for PHP to
recognize
that it exists, and present it to the Payflow Pro when it asks for it.

 Verisign response code was -31, which means: The certificate chain did not
 validate, no local certificate found The transaction request: Array
 [USER]
 = mylogin [PWD] = mypassword [TRXTYPE] = S [TENDER] = C [AMT] = 1.5
 [ACCT] = 4111 [EXPDATE] = 0904 ) The response: Array
  [RESULT] = -31 [RESPMSG] = The certificate chain did not validate, no
 local certificate found )

 Hmm. Certificate not found. I think that is in the directory that I
 specified for --with-pfpro=., under the ./certs subdirectory there. I
 just downloaded the test version, tho. I haven't found any information
from
 Verisign on how to update/change that certificate if needed, or any
 information from PHP's manuals on how to choose where the cert is located.
 Should it be in some PHP includable directory, for example?

 Regards,
 Henning


--
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] Payflow Pro extension in php 4.0.4pl1

2001-04-25 Thread Henning Kilset Pedersen

Hiya all.

I'm trying to use the Pay flow pro (--with-pfpro) extension on PHP4.0.4pl1
on Redhat 6.2 glibc2.1.

There seems to be a problem with the pfpro 3.0 SDK not being compatible with
PHP's header and .c files for pfpro. Are anyone aware of somewhere I can get
the 2.11 pfpro SDK (which should be compatible, according to what I've
hear) - or, ofcourse, even better - has anyone gotten the 3.0 SDK to work
with PHP?

I've also tried the newest CVS build of PHP, but it's still the same ol',
same ol'...

Regards,
Henning Pedersen
Funcom Oslo AS


-- 
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] Payflow Pro extension in php 4.0.4pl1

2001-04-25 Thread Henning Kilset Pedersen

Wow, that was quick, Dan :)

Yeah, I'm having apache compile-time problems that stops on PNVersion() when
reading some PHP include/c file I can't remember the name of right now :)

Where did you edit it out? In the pfpro SDK files themselves, or in PHP's
header files?

Regards,
Henning


-Original Message-
From: Dan Harrington [mailto:[EMAIL PROTECTED]]
Sent: 25. april 2001 21:47
To: Henning Kilset Pedersen; [EMAIL PROTECTED]
Subject: RE: [PHP] Payflow Pro extension in php 4.0.4pl1


Hello there,
I have gotten the 3.0 SDK to work, all I had to do was edit out the version
function
and it compiled just fine.

Verisign was of ABSOLUTELY NO HELP in this matter.  They simply said we
don't
support PHP at all and left me to flounder.  So I edited the source and got
it
working after a few days of beating my head on it.

What types of problems are you having?

Dan

 -Original Message-
 From: Henning Kilset Pedersen [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 25, 2001 1:20 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Payflow Pro extension in php 4.0.4pl1


 Hiya all.

 I'm trying to use the Pay flow pro (--with-pfpro) extension on PHP4.0.4pl1
 on Redhat 6.2 glibc2.1.

 There seems to be a problem with the pfpro 3.0 SDK not being compatible
with
 PHP's header and .c files for pfpro. Are anyone aware of somewhere I can
get
 the 2.11 pfpro SDK (which should be compatible, according to what I've
 hear) - or, ofcourse, even better - has anyone gotten the 3.0 SDK to work
 with PHP?

 I've also tried the newest CVS build of PHP, but it's still the same ol',
 same ol'...

 Regards,
 Henning Pedersen
 Funcom Oslo AS


 --
 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] Payflow Pro extension in php 4.0.4pl1

2001-04-25 Thread Henning Kilset Pedersen

Well, I didn't comment out the function itself, just the PNVersion() calls
inside the function, meaning that it will just turn out empty if you use the
PHP function that shows you pfpro's version :)

(I hope)

Oh, and btw, Dan, it seems to work fine :)

Regards,
henning


-Original Message-
From: Robert Covell [mailto:[EMAIL PROTECTED]]
Sent: 25. april 2001 21:56
To: Henning Kilset Pedersen; 'Dan Harrington'; [EMAIL PROTECTED]
Subject: RE: [PHP] Payflow Pro extension in php 4.0.4pl1


I would not edit the files themselves as it causes server instabilities.
This is what I did and found that it did indeed work, for awhile, crashing
miserably.  Something like this is far from the production ready ecommerce
system that I would desire for my company.  We moved to the beta SDK until
PHP can be updated.

Ironically, I just got an update from PHP about a bug report I submitted a
couple of months ago on this subject.  The details follow:

Quote 1:
ID: 9530
Updated by: jdonagher
Reported By: [EMAIL PROTECTED]
Status: Open
Bug Type: Verisign Payflow Pro related
PHP Version: 4.0.4pl1
Assigned To: [EMAIL PROTECTED]
Comments:

Since I work on this extension for my company, work on
this will progress when Verisign converts our account from
v2 to v3. I've received notification of this; it will be
within the next couple weeks.

Quote 2:
ID: 9530
Updated by: jdonagher
Reported By: [EMAIL PROTECTED]
Old-Status: Open
Status: Assigned
Bug Type: Verisign Payflow Pro related
PHP Version: 4.0.4pl1
Assigned To: [EMAIL PROTECTED]
Comments:

As a sidenote, commenting out the pfpro_version function
will not solve the problem. There are other features that
the v3 SDK implements which this extension does not. The
extension does need some work.



Sincerely,

Robert T. Covell
President / Owner
Rolet Internet Services, LLC
Web: www.rolet.com
Email: [EMAIL PROTECTED]
Phone: 816.210.7145
Fax: 816.753.1952

-Original Message-
From: Henning Kilset Pedersen [mailto:[EMAIL PROTECTED]]
Sent: Wednesday, April 25, 2001 2:52 PM
To: 'Dan Harrington'; [EMAIL PROTECTED]
Subject: RE: [PHP] Payflow Pro extension in php 4.0.4pl1


Wow, that was quick, Dan :)

Yeah, I'm having apache compile-time problems that stops on PNVersion() when
reading some PHP include/c file I can't remember the name of right now :)

Where did you edit it out? In the pfpro SDK files themselves, or in PHP's
header files?

Regards,
Henning


-Original Message-
From: Dan Harrington [mailto:[EMAIL PROTECTED]]
Sent: 25. april 2001 21:47
To: Henning Kilset Pedersen; [EMAIL PROTECTED]
Subject: RE: [PHP] Payflow Pro extension in php 4.0.4pl1


Hello there,
I have gotten the 3.0 SDK to work, all I had to do was edit out the version
function
and it compiled just fine.

Verisign was of ABSOLUTELY NO HELP in this matter.  They simply said we
don't
support PHP at all and left me to flounder.  So I edited the source and got
it
working after a few days of beating my head on it.

What types of problems are you having?

Dan

 -Original Message-
 From: Henning Kilset Pedersen [mailto:[EMAIL PROTECTED]]
 Sent: Wednesday, April 25, 2001 1:20 PM
 To: [EMAIL PROTECTED]
 Subject: [PHP] Payflow Pro extension in php 4.0.4pl1


 Hiya all.

 I'm trying to use the Pay flow pro (--with-pfpro) extension on PHP4.0.4pl1
 on Redhat 6.2 glibc2.1.

 There seems to be a problem with the pfpro 3.0 SDK not being compatible
with
 PHP's header and .c files for pfpro. Are anyone aware of somewhere I can
get
 the 2.11 pfpro SDK (which should be compatible, according to what I've
 hear) - or, ofcourse, even better - has anyone gotten the 3.0 SDK to work
 with PHP?

 I've also tried the newest CVS build of PHP, but it's still the same ol',
 same ol'...

 Regards,
 Henning Pedersen
 Funcom Oslo AS


 --
 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]




RE: [PHP] Count....

2001-04-25 Thread Henning Kilset Pedersen

Lookup the mysql_numrows function (think that's the correct spelling, I'm
using Oracle now ;-) - and go from there. Put in an

if ($count=mysql_numrows($query)) {
  // put whatever message/form/whatever you want to show the user
here
  }

for example, and put that directly below your $query = mysql_query... line.

Maybe make it like this instead:

if ($count=mysql_numrows($query)) {
  // put whatever message/form/whatever you want to show the user
here
  } else {
   while ($row 

etc.

I never decided on those elses and elseifs :)

Regards,
Henning Pedersen
Funcom Oslo


-Original Message-
From: Rafael Faria [mailto:[EMAIL PROTECTED]]
Sent: 25. april 2001 21:36
To: [EMAIL PROTECTED]
Subject: [PHP] Count


I'm doing a seach function... everything is okbut i wanna put something
like Use more specific terms when the search don't have anything to
show. but i can't do that can someone helpme?

i'm doing that!
=

 $query = mysql_query(select * from Newsletter_Members where
Newsletter_Members.email like '%$search%' order by id);

  while ($row = mysql_fetch_row($query)) {

 echo tr bgcolor=#DD\n;
 echo td align=centerinput type=checkbox name=id[]
value=$row[0]/td\n;
 echo td align=centerfont size=2
face=verdananbsp;$row[0]nbsp;/font/td\n;
 echo td align=centerfont size=2 face=verdananbsp;a
href=mailto:$row[1]$row[1]/anbsp;/font/td\n;
 echo td align=centerfont size=2 face=verdanaa
href=\javascript:openwin('editmember.php?email=$row[1]id=$row[0]','adicion
ar','400','110')\Editar/a/font/td\n;
 echo /tr\n;

  }

===

how can i make if doen't match anything say it doen't match anything ?






---

[ r a f a e l   f a r i a] _
[EMAIL PROTECTED]
WebMaster Universo Online - http://www.uol.com.br
Phone # +55 11 3038-8665


--
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] Payflow, story continued

2001-04-25 Thread Henning Kilset Pedersen

Dan and others, following this thread;
Here is the result of my pfpro_version() call :




Yup, that's right. Blank, stare, squiddly-squat, etc. Which is what I
intended.
However, here is the result of the test script for the function provided in
the PHP4.0.4 manual, script is here:

?php

pfpro_init();

$transaction = array(USER   = 'mylogin',
 PWD= 'mypassword',
 TRXTYPE= 'S',
 TENDER = 'C',
 AMT= 1.50,
 ACCT   = '4111',
 EXPDATE= '0904'
 );

$response = pfpro_process($transaction);

if (!$response) {
  die(Couldn't establish link to Verisign.\n);
}

echo Verisign response code was .$response[RESULT];
echo , which means: .$response[RESPMSG].\n;

echo \nThe transaction request: ;
print_r($transaction);

echo \nThe response: ;
print_r($response);

pfpro_cleanup();

?


and result is here:

Verisign response code was -31, which means: The certificate chain did not
validate, no local certificate found The transaction request: Array ( [USER]
= mylogin [PWD] = mypassword [TRXTYPE] = S [TENDER] = C [AMT] = 1.5
[ACCT] = 4111 [EXPDATE] = 0904 ) The response: Array
 [RESULT] = -31 [RESPMSG] = The certificate chain did not validate, no
local certificate found )

Hmm. Certificate not found. I think that is in the directory that I
specified for --with-pfpro=., under the ./certs subdirectory there. I
just downloaded the test version, tho. I haven't found any information from
Verisign on how to update/change that certificate if needed, or any
information from PHP's manuals on how to choose where the cert is located.
Should it be in some PHP includable directory, for example?

Regards,
Henning





-- 
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] Count.... --oops, addendum

2001-04-25 Thread Henning Kilset Pedersen


that should ofcourse be if(!$count=mysql_numrows($query))  {...

(put a ! directly infront of $count

-Original Message-
From: Henning Kilset Pedersen [mailto:[EMAIL PROTECTED]]
Sent: 25. april 2001 21:42
To: 'Rafael Faria'; [EMAIL PROTECTED]
Subject: RE: [PHP] Count


Lookup the mysql_numrows function (think that's the correct spelling, I'm
using Oracle now ;-) - and go from there. Put in an

if ($count=mysql_numrows($query)) {
  // put whatever message/form/whatever you want to show the user
here
  }

for example, and put that directly below your $query = mysql_query... line.

Maybe make it like this instead:

if ($count=mysql_numrows($query)) {
  // put whatever message/form/whatever you want to show the user
here
  } else {
   while ($row 

etc.

I never decided on those elses and elseifs :)

Regards,
Henning Pedersen
Funcom Oslo


-Original Message-
From: Rafael Faria [mailto:[EMAIL PROTECTED]]
Sent: 25. april 2001 21:36
To: [EMAIL PROTECTED]
Subject: [PHP] Count


I'm doing a seach function... everything is okbut i wanna put something
like Use more specific terms when the search don't have anything to
show. but i can't do that can someone helpme?

i'm doing that!
=

 $query = mysql_query(select * from Newsletter_Members where
Newsletter_Members.email like '%$search%' order by id);

  while ($row = mysql_fetch_row($query)) {

 echo tr bgcolor=#DD\n;
 echo td align=centerinput type=checkbox name=id[]
value=$row[0]/td\n;
 echo td align=centerfont size=2
face=verdananbsp;$row[0]nbsp;/font/td\n;
 echo td align=centerfont size=2 face=verdananbsp;a
href=mailto:$row[1]$row[1]/anbsp;/font/td\n;
 echo td align=centerfont size=2 face=verdanaa
href=\javascript:openwin('editmember.php?email=$row[1]id=$row[0]','adicion
ar','400','110')\Editar/a/font/td\n;
 echo /tr\n;

  }

===

how can i make if doen't match anything say it doen't match anything ?






---

[ r a f a e l   f a r i a] _
[EMAIL PROTECTED]
WebMaster Universo Online - http://www.uol.com.br
Phone # +55 11 3038-8665


--
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]