DwZone Forum DwZone Forum
Welcome to the DwZone-it Forum
 
  FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups  
    RegisterRegister -->   LoginLogin  
Advanced Form Controls  
DwZone Forum Index -> Advanced Form Controls
.
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 1 to 10 of 40 (Total: 40) First |  Prev |  Next |  Last  
 Subject Author Date  
   Dynamic list menu not display first record  
View this persons public profile  Jean-Pierre   8:16 25 Dec 2017  
    Re: Dynamic list menu not display first record  
View this persons public profile  Jean-Pierre   1:33 29 Dec 2017  
 
I found a solution, but I think it is not the most suitable, just comment the line: // $ row_rsPhoto1 = mysqli_fetch_assoc ($ rsPhoto1);

This is the recordset:
<? Php
// **************************
// ProfRecWiz - MySqli
// http://www.dwzone-it.com
// Version: 1.0.15
// **************************
mysqli_select_db ($ SqliVote, $ database_SqliVote);
$ mysqli_rsPhoto1_query = "SELECT num_photo_1.id_num, num_photo_1.numero FROM num_photo_1 ORDER BY num_photo_1.numero Asc";
$ rsPhoto1 = mysqli_query ($ SqliVote, $ mysqli_rsPhoto1_query) or die (mysqli_error ($ SqliVote));
// $ row_rsPhoto1 = mysqli_fetch_assoc ($ rsPhoto1);
$ totalRows_rsPhoto1 = mysqli_num_rows ($ rsPhoto1);
// **************************
// ProfRecWiz - MySqli
// **************************
?>



because in the function:

// Dynamic options
$ row = mysqli_fetch_assoc ($ _ recordset);
do{
$ _text = $ row [$ _ text_field];
$ _value = $ row [$ _ value_field];
$ _selected = "";
if (strlen ($ _ selected_value)! = 0 && $ _selected_value == $ _value) {
$ _selected = "selected = \" selected \ "";
}
$ html. = "<value option = \" ". $ _ value." \ "". $ _ selected. ">". $ _ text. "</ option>";
} while ($ row = mysqli_fetch_assoc ($ _ recordset));

// write the options
echo $ html;
}

Did you have this problem?
Thank you for your reply.
cordially
Jean Pierre Valls

I work under MacOs and DW CC2018




 
Reply to this current thread  View this persons public profile  Send Private Message
   Re: Dynamic list menu not display first record  
View this persons public profile  Jean-Pierre   10:02 27 Feb 2018  
   Re: Dynamic list menu not display first record  
View this persons public profile  Gianluigi   10:17 28 Feb 2018  
   Re: Dynamic list menu not display first record  
View this persons public profile  Gianluigi   6:54 4 Mar 2018  
   Date Picker Button or image  
View this persons public profile  Awalters30043   19:13 13 Sep 2017  
   Re: Date Picker Button or image  
View this persons public profile  Gianluigi   9:53 14 Sep 2017  
   Re: Date Picker Button or image  
View this persons public profile  Awalters30043   12:06 14 Sep 2017  
   Re: Date Picker Button or image  
View this persons public profile  Awalters30043   18:30 14 Sep 2017  
   Re: Date Picker Button or image  
View this persons public profile  Gianluigi   2:12 16 Sep 2017  
Last Visit: Thursday 7 Nov, 2024 2:17 am 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: