Forums

PHP

This topic is locked

Blank searches

Posted 30 Jul 2001 23:15:01
1
has voted
30 Jul 2001 23:15:01 Keith Slater posted:
How do you make it so that if some one searches for something and nothing comes up it says something like no results found?

thanks

Keith Slater
Word Pro Systems
www.wordprosys.com

Replies

Replied 31 Jul 2001 00:59:15
31 Jul 2001 00:59:15 Tim Green replied:
<?php
if (!$RecordsetName->RecordCount()) {
echo "No Records Found";
}
?>

Tim Green

Extension & PHP TalkZone Manager

------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
------------------------------------------
Replied 31 Jul 2001 11:01:49
31 Jul 2001 11:01:49 Waldo Smeets replied:
The answer Tim gave is the Code written by the Show Region When Recordset is Empty server behavior. So that is the one you should use to avoid handcoding <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle> It is a standard behavior in UD and PHAkt.

Waldo Smeets - www.UDzone.com Webmaster
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>
Replied 31 Jul 2001 12:18:36
31 Jul 2001 12:18:36 Tim Green replied:
Oops ! Well spotted Waldo ! Didn't quite have my thinking cap on there <img src=../images/dmxzone/forum/icon_smile_wink.gif border=0 align=middle>

Tim Green

Extension & PHP TalkZone Manager
<font size=1>-------------------------------------------
<i>Please read the Forum FAQ before posting
a question to this TalkZone.</i>
-------------------------------------------
www.UDzone.com : A dynamic Dreamweaver,
Ultradev and Fireworks site for developers
by developers.
-------------------------------------------</font id=size1>

Edited by - rawveg on 07/31/2001 12:21:39

Reply to this topic