DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Advanced Search  
DwZone Forum Index -> Advanced Search
.
Moderators: AdministratorsModerators 
Hint: For improved responsiveness, use Internet Explorer 4 (or above) with Javascript enabled, choose 'Dynamic' from the View dropdown and hit 'Set Options' to save your changes.
New Topic Search for
 View     Per page     Messages Since 
Messages 11 to 20 of 40 (Total: 40) First |  Prev |  Next |  Last  
 Subject Author Date  
   Re: Advanced search and PHP Import Export  
View this persons public profile  Randy   8:17 20 Dec 2016  
   Re: Advanced search and PHP Import Export  
View this persons public profile  Gianluigi   10:03 20 Dec 2016  
   Re: Advanced search and PHP Import Export  
View this persons public profile  Randy   10:09 20 Dec 2016  
   can't get a void recordset to show  
View this persons public profile  Randy   19:11 15 Dec 2016  
   Re: can't get a void recordset to show  
View this persons public profile  Gianluigi   10:05 16 Dec 2016  
   On void result display custom message  
View this persons public profile  KamleshPanchal   22:10 29 Aug 2016  
    Re: On void result display custom message  
View this persons public profile  KamleshPanchal   2:02 30 Aug 2016  
 
I have the following code which should work but when I search for the date every time it just displays the else condition "Sorry! We didn't find any data for your search". I can not figure out why this is not working.

if (!empty($row_searchdata['StudentID'])){
echo $output = '<h3>Data Found</h3>';
$output .= '<form name="selected" id="selected" action="'.$editFormAction.'" method="POST">';
$output .= '<input type="hidden" name="memberid" value="'.$row_studentlogin['memberID'].'">';
$output .= '<table class="table table-responsive table-condensed table-bordered table-striped table-hover">';
$output .= '<tr>';
$output .= '<th class="col-md-3 col-xs-3">Full Name</th>';
$output .= '<th class="col-md-2 col-xs-2">City/Village</th>';
$output .= '<th class="col-md-4 col-xs-4">Course</th>';
$output .= '<th class="col-md-2 col-xs-2">Subject</th>';
$output .= '<th class="col-md-1 col-xs-1">Select</th>';
$output .= '</tr>';
do {
$output .= '<tr>';
$output .= '<input type="hidden" name="studentid" value="'.$row_searchdata['StudentID'].'">';
$output .= '<td class="col-md-3 col-xs-3">'.$row_searchdata['FullName'].'</td>';
$output .= '<td class="col-md-2 col-xs-2">'.$row_searchdata['CityName'].'</td>';
$output .= '<td class="col-md-4 col-xs-4">'.$row_searchdata['CourseDescriptionLong'].'</td>';
$output .= '<td class="col-md-2 col-xs-2">'.$row_searchdata['Subject'].'</td>';
$output .= '<td class="col-md-1 col-xs-1"><input name="selectrec" type="checkbox" value=""></td>';
$output .= '</tr>';
} while ($row_searchdata = mysql_fetch_assoc($searchdata));
$output .= '</table>';
$output .= '<input type="submit" class="btn btn-primary pull-right" name="submitbtn" value="Next">';
$output .= '<input type="hidden" name="MM_update" value="selected">';
$output .= '</form>';
} else {
echo '<h3>Sorry! We didn\'t find any data for your search</h3>';
};
 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: On void result display custom message  
View this persons public profile  Gianluigi   11:02 30 Aug 2016  
   find part of a text in a field  
View this persons public profile  Johnny Odgaard   3:36 18 Jul 2016  
   Re: find part of a text in a field  
View this persons public profile  Gianluigi   9:45 18 Jul 2016  
Last Visit: Thursday 28 Mar, 2024 9:39 pm First |  Prev |  Next |  Last  
 Login
Username:  Password:    
Read Message Read Message   Unread message Unread message
Read message [popular] Read message [popular]   Unread message [popular] Unread message [popular]
Read message [locked] Read message [locked]   Unread message [locked] Unread message [locked]
All times are GMT-1

Jump to: