html – No me inserta los datos como deberías en php y sql

Tengo una tabla con un form para que me muestre de un lado los usuarios registrados y del otro los input de cada uno a llenar pero a la hora de llenar los datos no me guarda los datos bien, osea, si guardo los datos del primero me aparecen puros 0, como que le da mas prioridad a los campos del segundo usuario. Y si guardo datos en los dos solo me registra los del segundo usuario cuando quiero guardar los dos a la vez, acá el form

 <form method="POST">

        <table class="table table-striped">
        <div class="col-3">
            <label for="fechaAporte"><h3><b>Fecha del Aporte</b></h3></label>
            <input type="date" class="form-control" name="fechaAporte" required>
        </div>
        <br>
            <thead class="thead-dark">
                <tr>
                    <th>Cedula</th>
                    <th>Nombre</th>
                    <th>apellido</th>

                    <th>Aporte Asociado</th>
                    <th>Fecha Pago del Asociado</th>
                    <th>Aporte Patronal</th>
                    <th>Fecha del Aporte Patronal</th>
                    <th>Total del Monto Aportado</th>
                    <th>Acción</th>
                </tr>
            </thead>
            <tbody>
                <?php                
                $resultadoBus = mysqli_query($mysqli, "SELECT * FROM asociado WHERE tipoUsuario = 2");

                while ($row = mysqli_fetch_array($resultadoBus)) { 

                    ?>
                    <tr>
                    <td><?php echo $row('cedula'); ?></td>
                    <td><?php echo $row('nombre'); ?></td>
                    <td><?php echo $row('apellido'); ?></td>
                  <!-- while de Haberes -->
                    <td><input type="text" name="aporteAsociado" class="form-control" id="aporte1" ></td>
                    <td><input type="date" name="fechaPagoAsociado" class="form-control" id="fechaPagoAsociado" ></td>
                    <td><input type="text" name="aportePatrono" class="form-control" id="aporte2"></td>
                    <td><input type="date" name="fechaAportePatrono" class="form-control" id="fechaAportePatrono"></td>
                    <td><input name="montoAporte" class="form-control" id="total"></td>



                    <td>
                                        <button type="submit" name="btnCrearHaber" value="<?php echo $row('cedula'); ?>" class="btn btn-success">Registrar Aporte</button>

                    </td>


                    <tr>
                <?php } ?>

            </tbody>

</table>    

 </form>

Y acá el PHP para guardar los datos, me imagino que es el que me está dando fallos en la parte lógica

 if (!empty($_POST)){

    if(isset($_POST('btnCrearHaber'))) {


        $cedulaAsociado = $_POST('btnCrearHaber');
        $fechaAporte = $_POST('fechaAporte');
        $aporteAsociado = $_POST('aporteAsociado');
        $fechaPagoAsociado = $_POST('fechaPagoAsociado');
        $aportePatrono = $_POST('aportePatrono');
        $fechaAportePatrono = $_POST('fechaAportePatrono');
        $montoAporte = $_POST('montoAporte');
        $estado = 0;
        $insertando = "INSERT INTO haber (cedulaAsociado, fechaAporte , aporteAsociado, fechaPagoAsociado, aportePatrono, fechaAportePatrono, montoAporte, estado)
        VALUES ('$cedulaAsociado', '$fechaAporte', '$aporteAsociado', '$fechaPagoAsociado', '$aportePatrono', '$fechaAportePatrono', '$montoAporte', '$estado')";

        $resultado =  mysqli_query($mysqli, $insertando);

         if (!$resultado) {
              echo("Error description: " . $mysqli -> error);

         }

    } else {


    }


}

Notepad++ How to put split HTML tags onto one line using a Find/Replace Regex search?

Suppose I have a document containing this:

<div data-test-id="comment">
  <div class="class1 
    class2
    class3">
    <p class="class1">
        Lorem Ipsum
    </p>
</div>

The second and third lines have an HTML tag that is split between two lines. I haven’t been able to figure out how to bring them onto one line like this:

<div data-test-id="comment">
  <div class="class1 class2 class3">
    <p class="class1">
        Lorem Ipsum
    </p>
</div>

Whenever I try to use the “?” non-greedy modifier, it seems to ignore it.

game design – My HTML Canvas went blank

I tried to draw Mario Sprites in my HTML Canvas, but it always went blank.
Anybody knows why?

var canvas = document.getElementById("screen");
var ctx = canvas.getContext("2d");
var mario;
var marioSprite;
var tiles;
var speedX = 1;

//marioSprite Specification
mario = {
    //target picture specification X & Y, Width & Height
    px:276,
    py: 44,
    pwidth: 16,
    pheight: 16,
    //drawing on Canvas specification X & Y, Width & Height
    cx: 16,
    cy: 116,
    cwidth:16,
    cheight:16,
}


//draw Mario in Canvas
function drawMarioSprite(){
    marioSprite = new Image();
    marioSprite.src = "http://gamedev.stackexchange.com/file:///C:/Users/MASTONO ALI/Desktop/img/characters.gif";
    marioSprite.addEventListener('load', e => {
    ctx.drawImage(marioSprite, 
        mario.px, mario.py, mario.pwidth, mario.pheight, 
        mario.cx, mario.cy, mario.cwidth, mario.cheight);
    });
    this.position = function() {
        this.mario.cx += speedX;       
    }
    position();
}//drawMarioSprite() end

//drawTiles and tilesLoop
function drawTiles() {
    tiles = new Image();
    tiles.src = 'file:///C:/Users/MASTONO ALI/Desktop/img/tiles.png';
    tiles.addEventListener('load', e => {
        tilesLoop();
    });
}
function tilesLoop(){
    for (let x = 0; x < 25; x++){
        for (let y = 11; y < 13; y++){
            ctx.drawImage(tiles, 
                0, 0, 26, 26, 
                x*12, y*12, 20, 20);
        }
    }
}//drawTiles() end


function draw(){
    ctx.clearRect(0, 0, canvas.width, canvas.height);
    drawMarioSprite();
    drawTiles();
    window.requestAnimationFrame(draw);
}

window.requestAnimationFrame(draw);

woocommerce – woocommmerce Html Table in product page : save select value in order and email

I Want to add table in single product page woocommerce table with dropdown list like shown in the image link
1- add table in the single product page or for certain product category
2- select value will be save in order and email notification

https://gulfoptic.com/wp-content/uploads/2020/06/table.jpg

HTML CODE

<div>
<div>
<h2 data-fontsize="19" data-lineheight="29">6 RX Information</h2>
<table cellspacing="0">
<tbody>
<tr>
<th>Sphere(SPH) <a title="sphere are the diopter values ​​on which your nearsightedness or farsightedness can be corrected. They always exist in quarter Dioptiren-scale eg 0.25 / 0.50 / 0.75 ... 1.25 ... etc" href="#" data-toggle="tooltip" data-placement="top"> ? </a></th>
<th>Cylinder(CYL) <a title="The cylinderValue is always second in your spectacle and returns the value of your astigmatism in. As the pupil is a little wavy, creates an image distortion. Image distortions are compensated by means of cylinder values ​​that may have values ​​in both minus and plus. Astigmatism does not have any mandatory." href="#" data-toggle="tooltip" data-placement="top"> ? </a></th>
<th>Axis <a title="The axis is the third in the spectacle pass and returns the position of the cylinder at from 1 to 180 degrees." href="#" data-toggle="tooltip" data-placement="top"> ? </a></th>
<th>PD <a title="The pupillary distance is easy in front of the mirror with a ruler, measure from the center of the nose to the middle of the pupil. The value is in
mm specified. Particularly important in progressive lenses because otherwise an optimum visual acuity is guaranteed, as bifocals contains different viewing zones. In that case, we recommend the pupil to be measured distance from an eye doctor and perform equal to a check-up." href="#" data-toggle="tooltip" data-placement="top"> ? </a></th>
<th>ADD <a title="" href="#" data-toggle="tooltip" data-placement="top" data-original-title="ADD are the addition values, and is only required for progressive lenses, compared presbyopia (presbyopia). This is the value between the near and far values ​​or the difference."> ? </a></th>
</tr>
<tr>
<th>OD - Right</th>
<td><select name="SPH_ODRight">
<option selected="selected" value="">Select</option>
<option value="-9.25">-9.25dpd</option>
<option value="-9.00">-9.00dpd</option>
<option value="-8.75">-8.75dpd</option>
</select></td>
<td><select name="CYL_ODRight">
<option selected="selected" value="">Select</option>
<option value="-4.75">-4.75dpt</option>
<option value="-4.50">-4.50dpt</option>
<option value="-4.25">-4.25dpt</option>
<option value="-4.00">-4.00dpt</option>
<option value="-3.75">-3.75dpt</option>
</select></td>
<td><select name="AXIS_ODRight">
<option selected="selected" value="">Select</option>
<option value="0&deg;">0&deg;</option>
<option value="1&deg;">1&deg;</option>
<option value="2&deg;">2&deg;</option>
</select></td>
<td><select name="PD_ODRight">
<option selected="selected" value="">Select</option>
<option value="25.00">25.00</option>
<option value="25.50">25.50</option>
<option value="26.00">26.00</option>
<option selected="selected" value="31.50">31.50</option>
<option value="32.00">32.00</option>
<option value="32.50">32.50</option>
<option value="38.00">38.00</option>
</select></td>
<td><select name="ADD_ODRight">
<option selected="selected" value="">Select</option>
<option value="0.50">0.50</option>
<option value="0.75">0.75</option>
<option value="1.00">1.00</option>
</select></td>
</tr>
<tr>
<th>OS - Left</th>
<td><select name="SPH_OSLeft">
<option selected="selected" value="">Select</option>
<option value="-9.25">-9.25dpd</option>
<option value="-9.00">-9.00dpd</option>
<option value="-8.75">-8.75dpd</option>
</select></td>
<td><select name="CYL_OSLeft">
<option selected="selected" value="">Select</option>
<option value="-4.75">-4.75dpt</option>
<option value="-4.50">-4.50dpt</option>
<option value="-4.25">-4.25dpt</option>
</select></td>
<td><select name="AXIS_OSLeft">
<option selected="selected" value="">Select</option>
<option value="0&deg;">0&deg;</option>
<option value="1&deg;">1&deg;</option>
<option value="2&deg;">2&deg;</option>
<option value="
&lt;option value=">95&deg;</option>
<option value="180&deg;">180&deg;</option>
</select></td>
<td><select name="PD_OSLeft">
<option selected="selected" value="">Select</option>
<option selected="selected" value="">Select</option>
<option value="25.00">25.00</option>
<option value="25.50">25.50</option>
<option value="26.00">26.00</option>
<option selected="selected" value="31.50">31.50</option>
<option value="32.00">32.00</option>
<option value="32.50">32.50</option>
<option value="33.00">33.00</option>
<option value="33.50">33.50</option>
</select></td>
<td><select name="ADD_OSLeft">
<option selected="selected" value="">Select</option>
<option value="0.50">0.50</option>
<option value="0.75">0.75</option>
<option value="1.00">1.00</option>
<option value="1.25">1.25</option>
<option value="1.50">1.50</option>
</select></td>
</tr>
</tbody>
</table>
<br />
<table cellspacing="0">
<tbody>
<tr>
<th>Prism Horizontal</th>
<th>Base Direction</th>
<th>Prism Vertical</th>
<th>Base Direction</th>
</tr>
<tr>
<th>OD - Right</th>
<td><select name="Prism_Horizontal_OD_Right">
<option selected="selected" value="">Select</option>
<option value="0.00">0.00</option>
<option value="0.25">0.25</option>
<option value="0.50">0.50</option>
<option value="0.75">0.75</option>
<option value="1.00">1.00</option>
<option value="1.25">1.25</option>
<option value="1.51">1.50</option>
<option value="1.75">1.75</option>
</select></td>
<td><select name="Base_Direction_OD_Right">
<option selected="selected" value="">Select</option>
<option value="In">In</option>
<option value="Out">Out</option>
</select></td>
<td><select name="Prism_Vertical_OD_Right">
<option selected="selected" value="">Select</option>
<option value="0.00">0.00</option>
<option value="0.25">0.25</option>
<option value="0.50">0.50</option>
<option value="0.75">0.75</option>
<option value="1.00">1.00</option>
<option value="1.25">1.25</option>
<option value="1.51">1.50</option>
<option value="1.75">1.75</option>
<option value="2.00">2.00</option>
</select></td>
<td><select name="Base_Direction_OD_Right2">
<option selected="selected" value="">Select</option>
<option value="Up">Up</option>
<option value="Down">Down</option>
</select></td>
</tr>
<tr>
<th>OS - Left</th>
<td><select name="Prism_Horizontal_OSLeft">
<option selected="selected" value="">Select</option>
<option value="0.00">0.00</option>
<option value="0.25">0.25</option>
<option value="0.50">0.50</option>
<option value="0.75">0.75</option>
<option value="1.00">1.00</option>
<option value="1.25">1.25</option>
<option value="1.51">1.50</option>
<option value="1.75">1.75</option>
</select></td>
<td><select name="Base_Direction_OSLeft">
<option selected="selected" value="">Select</option>
<option value="In">In</option>
<option value="Out">Out</option>
</select></td>
<td><select name="Prism_Vertical_OSLeft">
<option selected="selected" value="">Select</option>
<option value="0.00">0.00</option>
<option value="0.25">0.25</option>
<option value="0.50">0.50</option>
<option value="0.75">0.75</option>
<option value="1.00">1.00</option>
<option value="1.25">1.25</option>
<option value="1.51">1.50</option>
</select></td>
<td><select name="Base_Direction_OSLeft2">
<option selected="selected" value="">Select</option>
<option value="Up">Up</option>
<option value="Down">Down</option>
</select></td>
</tr>
</tbody>
</table>
<br /><hr /></div>
</div>

views – How do I apply HTML IDs to field output result?

I’m trying to build a block for tb_megamenu of a view of items of a certain content type. I want to use some JavaScript so that when the end user hovers over a title then associated content appears on the right hand side.

I’ve got the JavaScript/jQuery functionality working by attaching a library to the views display twig template and it works with a simple global text field using the correct IDs. However, it won’t work with tokens because all ids will apply to all instances of the field content, so that hovering will show all related content.

Is there a way to separate the fields out like a delta field? I can build this in HTML ultimately but it wont be manageable buy the end user ultimately.

theming – How can I specify how to display a new Paragraph type using HTML?

I want to create a “figure” Paragraphs type, which contains an image field and a caption field. How can I specify in HTML/twig how to render this new Paragraphs type?

As an example, how would I specify that the output would look like the following code?

<figure>
  <img src="https://drupal.stackexchange.com/image">
  <figcaption>caption</figcaption>
</figure>

html – ¿En css grid porque las cuadriculas desbordan el contenedor cuando tengo imagenes dentro de divs?

Estoy intentando hacer una galeria de imagenes con css grid pero las cuadriculas desbordan el contenedor, cuando solo pongo divs dentro del container todo va bien, el problema es cuando anido imagenes dentro de los divs.

<div class="container">
    <div class="item"><img src="https://es.stackoverflow.com/img/im1.jpg" alt=""></div>
    <div class="item"><img src="img/im2.jpg" alt=""></div>
    <div class="item"><img src="img/im3.jpg" alt=""></div>
    <div class="item"><img src="img/im4.jpg" alt=""></div>
    <div class="item"><img src="img/im14.jpg" alt=""></div>
    <div class="item"><img src="img/img.jpg" alt=""></div>
    <div class="item"><img src="img/img0.jpg" alt=""></div>
    <div class="item"><img src="img/img5.jpg" alt=""></div>
    <div class="item"><img src="img/img6.jpg" alt=""></div>
    <div class="item"><img src="img/img7.jpg" alt=""></div>
    <div class="item"><img src="img/img8.jpg" alt=""></div>
    <div class="item"><img src="img/img9.jpg" alt=""></div>
</div>

Responsive web design and Development for $95

Responsive web design and Development

Please Message me BEFORE placing order to discuss your project.

I will design and develop fully dynamic & responsive Website or Landing Page for you that will be eye catching, responsive, Google-friendly at affordable rates.

I am a Website Developer having 3+ years of professional experience in this Industry. My focus is customer satisfaction, precision, accuracy and quick services.

Why Hire Me?

100% Client Satisfaction Guaranteed,

3+ years’ experience in Web Design and development,

Fluent in English and Project Understanding,

Affordable Price,

Free Consultation,

Always Available,

.