This topic is locked

No records found

10/22/2008 5:58:01 PM
PHPRunner General questions
B
bbanks author

How can I remove the No records found message until someone has actually click the search button without checking the show records on first page.

J
Jane 10/23/2008

Hi,
use List page: Before display event on the Events tab for this purpose.

Here is a sample:

if ($_REQUEST["a"]!="search" && $_REQUEST["a"]!="advsearch" && $_REQUEST["a"]!="showall")

$xt->assign("message","");

B
bbanks author 10/23/2008

Hi,

use List page: Before display event on the Events tab for this purpose.

Here is a sample:


Jane thanks for your reply, I added your code above to the List page: before display: Custom code and am now getting an error:

Fatal error: Call to a member function on a non-object in /tmp/disk/home/webmaster/Files/WWW/dealers/include/evbe_Company_events.php on line 34



I only have a search button no advanced search and no showall button.

Do I need to change any of your code or does this work for any list page the way you wrote it?
Here is what I have been trying to do at the bottom of the list page in the code editor:

<P></P>{if $Search_SearchFor>" "}<P align=center><B>{$message}</B>{/if}{if $maxpages>1}{$pagination}{/if}{include_if_exists

file="../include/superbottom.php"}{$linkdata}</P></BODY></HTML>

J
Jane 10/24/2008

Bart,
this code is for PHPRunner 5.0.
If you use PHPRunner 4.2 use this code:

if ($_REQUEST["a"]!="search" && $_REQUEST["a"]!="advsearch" && $_REQUEST["a"]!="showall")

$smarty->assign("message","");

B
bbanks author 10/24/2008

Bart,

this code is for PHPRunner 5.0.
If you use PHPRunner 4.2 use this code:


That's it Jane thank you very much! Sorry I forgot to mention the Version I was on.