close ad
 
Important WebAssist Announcement
open ad
View Menu

Technical Support Forums

Free, outstanding support from WebAssist and your colleagues

DataAssist Search not working

Thread began 2/28/2023 9:01 am by msmoose2400634 | Last modified 3/06/2023 11:07 am by msmoose2400634 | 151 views | 3 replies

msmoose2400634

DataAssist Search not working

I have a .php displaying all of the golf course games (see below) on the page I have 3 radio buttons so that the visitor can select to view all, team games only or individual games. Nothing seems to happen when any of the radio buttons are selected.

SELECT games.gamesTitle, games.gamesDesc,teamgame, if(teamgame='Y','Yes','No') AS v_team,teamgame
FROM games
WHERE active = 'Y' and gamesDesc <>''
ORDER BY gamesTitle ASC LIMIT 25
(with a repeat region)

I have a place on the page for visitors to select from a radio group

<form id="frmSearch">
<table>
<tr>
<td>
<input type="radio" name="team[]" value=""> Show All |
<input type="radio" name="team[]" value="Y">Team Games |
<input type="radio" name="team[]" value="N">Individual Games
<input name="Search" type="submit" id="Search" value="Search" >
</td>
</tr>
</table>
</form>

Below is the search statement generated by the DataAssist behaviour

<?php
$searchrs_games_1 = new WA_MySQLi_Search("rs_games","0=0");
if (isset($_POST["Search"]) || isset($_POST["Search_x"])) {
$searchrs_games_1->clearSearch();
$searchrs_games_1->setSearch(array("type"=>"Value", "comparison"=>"=", "join"=>"AND"), array("teamgame"), "s", "".((isset($_GET["team"]))?$_GET["team"]:"") ."");
}
?>

Also here is the before and after url
Before
http://mussolinetestserver.site/publicPages/gamesViewPublic.php

After
http://mussolinetestserver.site/publicPages/gamesViewPublic.php?team%5B%5D=N&Search=Search

I have attached the php page.

Thank you in advance

Build websites with a little help from your friends

Your friends over here at WebAssist! These Dreamweaver extensions will assist you in building unlimited, custom websites.

Build websites from already-built web applications

These out-of-the-box solutions provide you proven, tested applications that can be up and running now.  Build a store, a gallery, or a web-based email solution.

Want your website pre-built and hosted?

Close Windowclose

Rate your experience or provide feedback on this page

Account or customer service questions?
Please user our contact form.

Need technical support?
Please visit support to ask a question

Content

rating

Layout

rating

Ease of use

rating

security code refresh image

We do not respond to comments submitted from this page directly, but we do read and analyze any feedback and will use it to help make your experience better in the future.

Close Windowclose

We were unable to retrieve the attached file

Close Windowclose

Attach and remove files

add attachmentAdd attachment
Close Windowclose

Enter the URL you would like to link to in your post

Close Windowclose

This is how you use right click RTF editing

Enable right click RTF editing option allows you to add html markup into your tutorial such as images, bulleted lists, files and more...

-- click to close --

Uploading file...