What's new

Welcome to the forum 👋, Visitor

To access the forum content and all our services, you must register or log in to the forum. Becoming a member of the forum is completely free.

Drop-down from XML File

Yitzchak

New member
Joined
Oct 21, 2019
Messages
1
Reaction score
0
HTML Coins
0
Hi all,
I've got a drop-down field which gets populated from data of a MSQL table.
The problem is that the list is over 12,000 records big, so the drop-down takes
really long to load.
Would it be faster if I based the drop-down from a XML file that is located in
the same directory where the php (with the drop-down code) is located?

If so - could someone help with code to populate the drop-down please?
I'm very new to Web development and learn most things from Google :)

This is the stripped-out code I'm using at the moment:

The PHP part:
<?php
$ProvincesLU = mysqli_query($mysqli, "SELECT * FROM LookupList WHERE Province <> ''");
while($Row = mysqli_fetch_array($ProvincesLU)) { $ProvinceOptions = $ProvinceOptions."<option>$Row[1]</option>"; }
?>

The HTML part:
<html>
<head>
<title>Contact Details</title>
</head>
<body>
<form name="form1" method="post" action="">
<tr>
<td>Province</td>
<td>
<select disabled name="SProvince" <?php echo $SProvince;?>>
<option value='<?php echo $SProvince;?>'><selected="selected"><?php echo $SProvince;?></option>
<?php echo $ProvinceOptions;?>
</select>
</td>
</tr>
</body>
</html>
 

Theme customization system

You can customize some areas of the forum theme from this menu.

  • Wide/Narrow view

    You can control a structure that you can use to use your theme wide or narrow.

    Grid view forum list

    You can control the layout of the forum list in a grid or ordinary listing style structure.

    Picture grid mode

    You can control the structure where you can open/close images in the grid forum list.

    Close sidebar

    You can get rid of the crowded view in the forum by closing the sidebar.

    Fixed sidebar

    You can make it more useful and easier to access by pinning the sidebar.

    Close radius

    You can use the radius at the corners of the blocks according to your taste by closing/opening it.

  • Choose the color combination that reflects your taste
    Background images
    Color gradient backgrounds
Back